-
Notifications
You must be signed in to change notification settings - Fork 37
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
Extend translate CLI command to default to all languages and add option for translating only one self-contained system #717
Extend translate CLI command to default to all languages and add option for translating only one self-contained system #717
Conversation
That is great. I think the The most common use case after that would probably be to translate only one self-contained system. E.g., on a build server, we could detect if there are missing translations. As for the removal of the PS: There are 5 validation errors on your pull-request :) |
Thinking about it from a user perspective, I would love to do a simple This also means we can delete the file selector. It is now shown when the user does not use any option.
I don't understand this use case: my assumption is that the developer would want any added keys to be translated, regardless of the self-contained system. The translator is smart enough to use credits only when there is something to translate, so running it across multiple self-contained systems will not increase the costs (if that is what we want to be cautious about?). With that said, we can pass in a flag I don't think there is a need for such flag. What are your thoughts? |
0f39db7
to
098aef4
Compare
The use case is that I would like to fail the deployment of a self-contained system if translations are missing. In PlatformPlatform, both Account Management and BackOffice have all translations in English, Danish, and Dutch. When a downstream project built on PlatformPlatform pulls changes using the But if we introduce a rule that blocks releasing one self-contained system if another self-contained system has missing translations, this becomes a problem. So this is the use case for scoping to a self-contained system. But we would also need a CLI option to just report if translations are missing, that returns true or false. |
If a developer pulls the changes using I prefer to translate any missing keys as a part of Pull Request CI pipeline automatically - no developer action required. The downside is when the translation fails for whatever reason - it would block the CI pipeline. That is a bit outside of scope for this PR, but it is the next step. Regarding the checks:
|
1fd057b
to
e0016d0
Compare
Summary & Motivation
Update the
translate
CLI command to translate all.po
files that are missing translations by default.Add a new
--self-contained-system
flag (alias-s
) that will scope the translations to only translate files for one self-contained system.Sample usage:
Checklist