i18n-check CLI for dev teams to validate their localization files #16263
Unanswered
andrewtavis
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all 👋 GitHub organizations I'm in are big Weblate users, so firstly thanks to the team and to the community! Really is so nice working with you all 😊
One of the communities I'm in that has extensive localization needs decided to work on a Python CLI to help the development team stay in sync with the work that's being done on Weblate. The result is i18n-check, which I'd like to introduce a bit and ask for feedback on :)
You set up the CLI with a YAML configuration file. The basic arguments it needs are the path to the project files (ex
frontend), the directory where your Weblate files live (exfrontend/i18n), the Weblate source file (exfrontend/i18n/en.json) and the files types that you'd like to validate against (ex[.ts, .js]).From there the CLI checks if:
_aria_label/_alt_text)We're using i18n-check in PR and pre-commit validation right now, and it's really helping to keep localization organized within a growing code base. As of now it just works with JSON i18n files, but if there's interest and capacity to support we'd welcome expanding it to other file types :)
Thoughts on the project would be very welcome! 😊
Beta Was this translation helpful? Give feedback.
All reactions