-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Hi,
We have a requirement where we need to reuse the same lang file for "different" locale.
Right now you can only have a 1 to 1 mapping:
<param>zh-Hans</param> => <zh-Hans>zh</zh-Hans>
That means that if you want to have the translation in two folders (like zh-Hans and zh) you can't do it with the plugin.
What would be fine is the option to manage it in the plugin, either by adding several tags for same lang
<targetLanguages>
<param>zh-Hans</param>
<param>zh-Hant</param>
</targetLanguages>
<languageMap>
<zh-Hans>zh</zh-Hans>
<zh-Hans>zh-Hans</zh-Hans>
<zh-Hant>zh-tw</zh-Hant>
<zh-Hant>zh-Hant</zh-Hant>
</languageMap>
Or by using a value separator
<targetLanguages>
<param>zh-Hans</param>
<param>zh-Hant</param>
</targetLanguages>
<languageMap>
<zh-Hans>zh;zh-Hans</zh-Hans>
<zh-Hant>zh-tw;zh-Hant</zh-Hant>
</languageMap>
<languageMapSeparator>;</languageMapSeparator>
Meaning that we will be able to output this folder structure without doing post plugin execution action
/zh
/zh-Hans
/zh-tw
/zh-Hant
Metadata
Metadata
Assignees
Labels
No labels