TranslationInherit (optional)
GitHub - magesuite/translation-inherit
The module allows inheriting translations. For example, a store with locale set to fr_CH
can inherit translations from de_DE
and if a given string is translated in fr_CH.csv
it will take precedence.
Installation
This module is optional.
composer require "creativestyle/magesuite-translation-inherit" ^1.0.0
Admin settings
There are no admin settings, the module is active when installed.
Backend
Example of usage
Add to di.xml
<type name="MageSuite\TranslationInherit\Model\ParentLocaleResolver">
<arguments>
<argument name="parentLocaleList" xsi:type="array">
<item name="de_CH" xsi:type="string">de_DE</item>
<item name="fr_CH" xsi:type="string">fr_FR</item>
</argument>
</arguments>
</type>
Â