Skip to content
This repository was archived by the owner on Sep 1, 2026. It is now read-only.
This repository was archived by the owner on Sep 1, 2026. It is now read-only.

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

Description

@xrissot-ibm

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions