intlify / vue-i18n-locale-message

:globe_with_meridians: i18n locale messages management tool for vue-i18n
MIT License
73 stars 12 forks source link

Define language order when infusing if extract used --split #247

Open mrleblanc101 opened 1 year ago

mrleblanc101 commented 1 year ago

Currently, all my FR string are first and EN are second. When I extract this is fine. When I infuse, the string are inserted by alphabetical order of lang, which mean EN first. This and #246 mean all my lines are changed if i were to commit the updated translation.

Here are my commands:

"i18n:extract": "vue-i18n-locale-message squeeze --target src --split --output messages",
"i18n:infuse": "vue-i18n-locale-message infuse --target src --locales messages --match '^([\\w-]*)\\.json$' -p=.prettierrc"
mrleblanc101 commented 1 year ago

I have about 3000 string in 200-300 components so this is a big issue for me.

mrleblanc101 commented 1 year ago

Relates to #255