Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven Plugin - Add multi map output support for same lang #165

Open
xrissot-ibm opened this issue Nov 13, 2020 · 0 comments
Open

Maven Plugin - Add multi map output support for same lang #165

xrissot-ibm opened this issue Nov 13, 2020 · 0 comments

Comments

@xrissot-ibm
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant