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

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

Open
mrleblanc101 opened this issue Oct 25, 2022 · 2 comments
Open

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

mrleblanc101 opened this issue Oct 25, 2022 · 2 comments

Comments

@mrleblanc101
Copy link
Contributor

mrleblanc101 commented Oct 25, 2022

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 mrleblanc101 changed the title Define order when using --split Define order when infusing if extract used --split Oct 25, 2022
@mrleblanc101
Copy link
Contributor Author

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

@mrleblanc101 mrleblanc101 changed the title Define order when infusing if extract used --split Define language order when infusing if extract used --split Oct 25, 2022
@mrleblanc101
Copy link
Contributor Author

Relates to #255

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