=== Universalist ===
Contributors: matiasescudero, freemius
Tags:              translate, multi‑language, block
Tested up to:      6.9
Stable tag:        2.2.0
Requires           PHP: 7.4.33
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html

Create content for any primary and secondary language.

== Description ==

Universalist lets you pair any primary language with any secondary language and write your page titles, headings, text, and lists in both. It automatically detects a visitor’s browser language, but you can also force the switch to the secondary language whenever needed. Once your two languages are selected, you can set dedicated content for each—giving every visitor a seamless, localized experience. 

== Frequently Asked Questions ==

= Is there an example of how to programmatically select a language? =

Yes. You can programmatically select a language by setting the plugin’s language cookie.  
For example, the following links set the `dj_universalist_lang_cookie` to a specific language and reload the page so the change takes effect:
```html
<a href="#" onclick="document.cookie='dj_universalist_lang_cookie=en;path=/;max-age=2592000';location.reload();return false;">English</a>
<a href="#" onclick="document.cookie='dj_universalist_lang_cookie=es;path=/;max-age=2592000';location.reload();return false;">Español</a>
```
The cookie persists for 30 days (`max-age=2592000`), so the user’s language choice is remembered across visits.

== Screenshots ==

1. Page title translation.
2. Title translation.
3. Text translation.
4. List translation.
5. Language switching links automatically generated for each available locale.

== Changelog ==

= 0.1.0 =
* Release

= 0.1.1 =
* Language detection bug fixed

= 0.1.2 =
* Title translation bug fixed

= 1.0.0 =
* Fixed style conflict bugs

= 2.0.0 =
* Introduced full multi‑language pairing: choose any primary and secondary language

= 2.0.1 =
* Fixed fatal error

= 2.0.2 =
* Fixed missing block

= 2.0.3 =
* Fixed missing block

= 2.1.0 =
* Added ability to generate direct language-switch links.

= 2.2.0 =
* New: Integrated Freemius for improved support and optional Pro features.
* Enhancement: Refactored core logic to support seamless updates.
* Fix: Minor UI adjustments for the new settings dashboard.

== Source Code ==

You can find the full source on GitHub:  
https://github.com/distantjet/universalist