Asana / locheck

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

Duplicate keys or values in base language file strings.xml or localization .strings are not reported will be good to have #30

Closed AnilVarturi11 closed 2 years ago

stevelandeyasana commented 2 years ago

Can you give an example of some strings that would have this problem?

alex-hunsley-nl commented 2 years ago

Just here to say +1 for this.

I'm just fixing a badly maintained localization file set and there are keys and values that are just outright duplicated:

"thing.key" = "hello there"
"thing.key" = "hello there"

But at the same time, you'd probably also like to detect:

"thing.key" = "hello there"
"thing.key" = "goodbye there"

i.e. a duplicated key regardless of values being different

stevelandeyasana commented 2 years ago

Thanks for the example! I opened a PR with an implementation. It'll be in the next release.