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

Order of translations is different between translation:extract and translation:download #398

Open
nicwortel opened this issue Jan 27, 2020 · 0 comments

Comments

@nicwortel
Copy link
Contributor

I started noticing this after updating the bundle to the most recent version, so it seems like this was introduced recently.

The order of translations seems to be completely different between translation:extract and translation:download. I'm not sure if this is because they use different writers (see #392 (comment)) or simply because no ordering is applied at all (and therefor the order in Loco is used in translation:download, and the order in the local source code is used in translation:extract).

This results in a massive Git diff if you extract new translations from an external source (Loco in our case), making the translation:extract command basically useless because you will have to manually figure out which messages are added, unless you accept the massive diff in your commit (and the second massive diff after you run translation:download again). Of course this isn't an issue if you .gitignore all translation files, but we do commit our messages.en.xlf as the "source translations".

afbeelding

afbeelding

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