locheck icon indicating copy to clipboard operation
locheck copied to clipboard

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

Open AnilVarturi11 opened this issue 4 years ago • 1 comments

AnilVarturi11 avatar Dec 23 '21 07:12 AnilVarturi11

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

stevelandeyasana avatar Jun 27 '22 18:06 stevelandeyasana

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

alex-hunsley-nl avatar Sep 12 '22 19:09 alex-hunsley-nl

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

stevelandeyasana avatar Sep 12 '22 20:09 stevelandeyasana