=== LingoToggle ===
Contributors: petrolytvyn
Requires at least: 6.5
Requires PHP: 7.4
Tested up to: 7.0
Stable tag: 1.0.0
License: GPLv2 or later
Donate link: https://www.buymeacoffee.com/lytvynpetro
Tags: multilingual, language switcher, translation, language toggler

**A lightweight plugin that toggles between pre-written language versions of text without external translation services.**

== Description ==

LingoToggle allows you to display multiple language versions of the same text using a custom separator. No duplicate pages, custom post types, or language-specific content management is required. Simply write all language versions in the same content block.

Example:

```
  Welcome # Ласкаво просимо # Добро пожаловать 
```

The plugin automatically detects such text, shows only the selected language, and adds a fixed language switch button in the upper-right corner of the page.

== Features: ==

* Lightweight and fast.
* No external translation services.
* No API keys required.
* Does not create additional pages.
* Does not create custom database tables.
* Compatible with most WordPress themes.
* Supports any number of languages.
* Works directly with standard WordPress Heading and Paragraph blocks.
* No custom blocks or shortcodes required.
* Custom language labels (RU, EN, UA, etc.).
* Custom separator (## $$ @#@ etc.).
* Optional text animation.
* Falls back to the first language if a translation is missing.

== Installation ==

1. Upload the plugin folder to the /wp-content/plugins/ directory.
2. Activate the plugin.
3. Open Settings → LingoToggle.
4. Enter language labels separated by spaces.
5. Choose the separator (default: #).
6. Enable or disable animation if desired.
7. Write multilingual text using the selected separator.


**Example:**

In a paragraph or heading, write the text using your selected separator.

```
<h1>
  Hello everyone! # Привіт усім! # Привет всем!
</h1>
<p>
  Welcome. # Ласкаво просимо. # Добро пожаловать.
</p>

```
In the languages ​​label, write the names of the languages ​​separated by spaces.
Each language label is automatically shortened to a maximum of three characters and displayed in uppercase on the switch button.

```
english ukrainian russian

↓

ENG УКR RUS
```

**Plugin Settings:**

* Languages : names of languages separated by spaces(default: EN).
* Separator : any custom separator (default: #).
* Animation : enable or disable text animation (default: Enabled).

== Frequently Asked Questions ==

= Does the plugin translate my website automatically? =

No. You write and manage all translations yourself.

= How many languages are supported? =

As many as you define in the plugin settings.

= What happens if a translation is missing? =

The plugin displays the first available language.

= Does it work with special characters? =

Yes, the script handles standard and most UTF-8 characters without issues.

= Can I write multilingual text directly in the WordPress editor? =

Yes. Simply enter your translations directly into any Heading, Paragraph, or other supported text block using the configured separator.

== Why LingoToggle? ==

Unlike automatic translation plugins, LingoToggle lets you write your own translations directly in the content.

This gives you complete control over wording, style and accuracy while keeping the plugin lightweight and easy to use.

== Screenshots ==

1. Plugin settings page.
2. Writing multilingual content in the WordPress editor.
3. An example of the plugin's operation.

== Changelog ==

= 1.0.0 =
* Initial release.


== Upgrade Notice ==

= 1.0.0 =
First stable release.
