diff --git a/.docs/configuration.png b/.docs/configuration.png index f9b338f..ea410b1 100644 Binary files a/.docs/configuration.png and b/.docs/configuration.png differ diff --git a/.docs/default-lng.png b/.docs/default-lng.png index a1f5526..cff5520 100644 Binary files a/.docs/default-lng.png and b/.docs/default-lng.png differ diff --git a/.docs/translation-lng.png b/.docs/translation-lng.png index e3f92cb..ae796d9 100644 Binary files a/.docs/translation-lng.png and b/.docs/translation-lng.png differ diff --git a/Readme.md b/Readme.md index ac831f1..e94f1e9 100644 --- a/Readme.md +++ b/Readme.md @@ -7,19 +7,16 @@ Multilingual Plugin is an advanced plugin that allows easy addition and manageme ## Configuration Steps -1. First, select the Content Type. -2. After selecting the Content Type, choose the fields that will be translated. If any field is not selected for translations, it will be disabled on the tab for another language. -3. Add at least two languages and select the default language. -4. After saving the settings, the Content Type is modified and a `__translations` field is added, containing an array of available translations. The translation language is available under the `__language` field in each `__translations` item. +1. First, select the Content Types. +2. Add at least two languages and select the default language. +3. After saving the settings, the Content Types are modified and a `__translations` field is added, containing an array of available translations. The translation language is available under the `__language` field in each `__translations` item. Multilingual plugin configuration ## Special Fields * `__translations`: Contains an array of translations, excluding the default language, whose data is found in the object fields. -* `__language`: Specifies the translation language. - -If a field is not selected for translations, it will not be visible in the __translations field and will only be available in the basic fields of the object for the default language. +* `__language`: Specifies the translation language. Language is saved in ISO 639 language codes. > Warning! The __translations field should not be manually modified. After each change in the content type for translated fields, go to the plugin settings and save them again to properly update the translation fields. @@ -50,7 +47,7 @@ Let's assume you have an object with `title` and `slug` fields. Before applying } ``` -Now, let's consider you are adding two languages: `pl` and `en`, and your default language is `en`. You are choosing the `title` field to translate. After applying translations, the object will be: +Now, let's consider you are adding two languages: `Poish` and `English`, and your default language is `English`. You are choosing the `title` field to translate. After applying translations, the object will be: ```json {