Asana / locheck

Validate iOS, Android, and Mac localizations. Find errors in .strings, .stringsdict, and strings.xml files.
MIT License
96 stars 10 forks source link

Parse and lightly validate Android strings #9

Closed stevelandeyasana closed 2 years ago

stevelandeyasana commented 2 years ago

This PR officially makes Locheck a cross-platform project!

Adds support for an androidstrings command which can parse strings.xml and compare two translations to make sure all keys are present in both. Additional validation will follow in another PR but will be slightly simpler than Stringsdict validation.

I tested this by running it on Asana's English and German translations and found a bunch of missing keys that are really missing from German.

stevelandeyasana commented 2 years ago

Added demo XML files and an integration test. Further work will be on a new branch.