=== AYM Multilingual Lite ===
Contributors: aymflow
Tags: multilingual, translation, language switcher, hreflang, seo
Requires at least: 6.0
Tested up to: 7.0
Stable tag: 1.6.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Free, practical multilingual management for WordPress — language routing, menus, header/footer mapping, and a clean language switcher.

== Description ==

AYM Multilingual Lite gives you a straightforward way to run a multilingual WordPress site without losing control of routing, menus, or theme output.

**What's included in Lite:**

* Unlimited languages, with one marked as the primary (prefix-less) language
* Language-based URL routing (e.g. `/tr/`, `/de/`) with proper hreflang and canonical tags for SEO
* Manual translation of pages, posts, and any public custom post type you enable — clone a page into another language with one click, then edit it normally
* Per-language menu mapping for each theme location
* Per-language header/footer template mapping (works with Elementor Theme Builder and similar setups)
* A clean language switcher (shortcode or a dedicated panel on the Menus screen)
* Automatic redirect for first-time visitors to their browser's preferred language (optional, off by default)
* A read-only Health panel that scans for missing/duplicate translations, broken homepage mapping, broken menu links, page-template mismatches, and suggests likely-unlinked translation pairs
* Full right-to-left (RTL) support for Arabic, Hebrew, and other RTL languages
* Settings export/import between sites

Need more? **AYM Multilingual Pro** (sold separately at [aymflow.com](https://aymflow.com)) adds AI-powered translation (OpenAI, Claude, or DeepL — using your own API key), bulk translation, a terminology glossary, WPML/Polylang import, translation of string/UI text and SEO fields, and WooCommerce product & variation translation with automatic currency conversion.

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/aym-multilingual-lite`, or install it directly through the WordPress plugins screen.
2. Activate the plugin.
3. You'll be taken to a guided Setup Wizard: add your languages, map your menus, and assign header/footer templates for each language.
4. Use the "+ Language" button next to any page, post, or supported custom post type to create and edit a translation.

== Frequently Asked Questions ==

= Does this work with my page builder? =

Yes — the core routing, menu, and header/footer features work with any theme or builder. Elementor Theme Builder and ElementsKit are directly supported for header/footer mapping.

= Does Lite support unlimited languages? =

Yes — Lite has no cap on the number of languages. AYM Multilingual Pro adds AI-powered translation, bulk translation, WooCommerce product translation, and WPML/Polylang migration tools on top of the same unlimited-language foundation.

= Does this modify my existing pages? =

No. Removing or deactivating the plugin never deletes your pages, posts, or products. By default, uninstalling the plugin only removes its own settings — nothing is deleted unless you explicitly opt in on the Setup tab.

== Screenshots ==

1. Guided Setup Wizard
2. Language management
3. Health panel

== Changelog ==

= 1.6.0 =
* Renamed all option keys, post meta keys, the shortcode, custom hooks (actions/filters), PHP namespace, and defined constants from the "aym" prefix to "aymml" (4+ characters), per WordPress.org review feedback requiring a longer, more distinct prefix. If you used the [aym_lang_switcher] shortcode directly in a Custom Link menu item, update it to [aymml_lang_switcher] after updating.

= 1.5.1 =
* No functional changes — re-tagged to accompany an updated plugin listing description.

= 1.5.0 =
* Removed the 2-language cap entirely — Lite now supports unlimited languages, in line with WordPress.org's guideline against artificially limiting built-in functionality. Upgrade messaging now focuses on AI translation, bulk translation, and WooCommerce support instead.
* All inline <script>/<style> output now uses wp_enqueue_script()/wp_enqueue_style() with wp_add_inline_script()/wp_add_inline_style(), per WordPress.org review feedback.
* Stricter boolean sanitization on registered settings (rest_sanitize_boolean()).
* Additional output escaping in the language switcher shortcode and title filters.

= 1.4.3 =
* Final Plugin Check pass: added per-line ignore annotations for all remaining multi-line editor-detection checks (each line of a check needs its own comment; a comment only covers the single line right after it).

= 1.4.2 =
* Further Plugin Check cleanup: fixed remaining nonce-verification/sanitization annotations that a first pass missed (multi-line statements need a comment per line), and covered two additional editor-detection code paths.

= 1.4.1 =
* WordPress.org Plugin Check cleanup: fixed a text-domain mismatch, updated "Tested up to", replaced parse_url()/wp_redirect() with their WordPress-recommended equivalents, added cache-busting version parameters to registered scripts/styles, and added missing input sanitization/unslashing throughout.

= 1.4.0 =
* Rebuilt from the current AYM Multilingual codebase with all general-purpose improvements: RTL support, browser-language auto-redirect, translation progress indicator, page-template mismatch detection, and suggested translation matches (via shared featured image).
* Any public custom post type can now be enabled for translation from the Languages tab, not just Pages/Posts.

= 1.3.1 =
* Menu fallback: a language with no menu assigned now falls back to the primary language's menu instead of showing an empty menu.

= 1.0.0 =
* Initial WordPress.org release.

== Upgrade Notice ==

= 1.6.0 =
Renames internal option/meta keys, the shortcode, and hooks to a longer prefix (aym_ -> aymml_) for WordPress.org compliance. If you used [aym_lang_switcher] directly in a menu, update it to [aymml_lang_switcher].

= 1.5.1 =
No functional changes.

= 1.5.0 =
Removes the 2-language limit — unlimited languages are now free. Also addresses WordPress.org review feedback (script/style enqueueing, sanitization, escaping).

= 1.4.3 =
Final internal code-quality pass for WordPress.org submission. No functional changes.

= 1.4.2 =
More internal code-quality fixes. No functional changes — safe to update.

= 1.4.1 =
Internal code-quality and WordPress.org compliance fixes. No functional changes — safe to update.

= 1.4.0 =
Adds RTL support, browser-language auto-redirect, and several Health panel improvements. No action needed — your existing languages, translations, and settings are preserved.
