=== EffortLess Multisite Language Switcher === Contributors: David Deflache Donate link: https://domclic.com/wordpress/plugins/effortless-multisite-language-switcher/donate Tags: multisite, language switcher, translation, network, multilingual Requires at least: 5.5 Tested up to: 6.8 Requires PHP: 7.4 Stable tag: 1.0.10 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Adds a floating globe icon to WordPress Multisite to switch between different languages or subsites easily. == Description == **EffortLess Multisite Language Switcher** is a lightweight plugin designed for WordPress Multisite networks. It adds a floating globe icon on the frontend, allowing users to quickly switch between subsites — each typically representing a different language or locale. The plugin detects each site's locale setting and displays an appropriate flag icon. Flags are automatically mapped using a JSON file and preloaded to enhance performance. This plugin is ideal for multilingual networks using subdirectories or subdomains. **Features:** - Automatically detects and displays flags for each site in the network. - Uses a floating, always-visible globe icon to provide an intuitive language switcher. - Smart caching using WordPress object cache. - Fully compatible with subdirectory and subdomain multisite setups. == Installation == 1. Upload the plugin folder to the `/wp-content/plugins/` directory. 2. Activate the plugin through the 'Plugins' menu in WordPress. 3. Make sure each subsite in your network has the proper `WPLANG` setting (via **Settings > General**). 4. (Optional) Add your translations and flag mappings in `/assets/flags/` and `locales_flags.json`. == Frequently Asked Questions == = Does this plugin work on single-site WordPress installations? = No. This plugin is specifically designed for WordPress Multisite networks. = How does it detect the language for each subsite? = It uses the `WPLANG` setting from each site's options. = Can I customize the flags or locales? = Yes! You can edit the `assets/flags/locales_flags.json` file to add or override mappings. = Are the flags hosted locally? = Yes, all flag icons are SVG files stored in the plugin's `/assets/flags/1x1/` directory. == Screenshots == 1. Floating globe icon in the bottom-right corner. 2. Language switcher with site flags. 3. JSON mapping file for locales to flag codes. == Changelog == = 0.3.0 = * Initial public release. * Adds JSON-based flag mapping. * Adds object caching for site listing. * Includes floating icon rendering logic. == Upgrade Notice == = 0.3.0 = First stable release. Install if you want a simple, floating multisite language switcher with flag icons. == License == This plugin is released under the GPLv2 or later. You can use it freely in commercial or personal projects.