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

[Feature request] Check for missing messages and exit with error code if found #65

Closed
matuscongrady opened this issue Aug 21, 2017 · 4 comments

Comments

@matuscongrady
Copy link

Hello,

My build pipeline is something like: lint > flow > test > build.
I would like to add checks for missing messages.

lingui extract produces a nice catalog statistics, that show if there are some missing translations.

Problem is, I can't plug it to my pipeline. I need a check that exits with error code, if there are some missing translations.
I'd like my pipeline to abort build and show error in this case.

Hopefully, this won't be hard to implement.

Thanks!

@tricoder42
Copy link
Contributor

Definitely good point!

What about lingui compile --validate? There're might be other validations in the future, so it's a good start.

The reason why I prefer compile instead of extract is that in the near future I want to release sync command, which downloads translation from external service (like Transifex). The workflow would be extract -> sync -> compile, so the validation in last step makes sense.

What do you think?

@tricoder42
Copy link
Contributor

Added lingui compile --strict option, which fails if any catalog has missing translation.

@ppozniak
Copy link

Apologise for necro posting but does --strict checks for missing files, or actual translations?
Cause it seems not to work with translations. I have all translations missing, for sure, and it still exits successfully.

@tricoder42
Copy link
Contributor

@ppozniak Yeah, it should fail for missing translations. Could you please make a repo with example?

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

No branches or pull requests

3 participants