We have a bug reported where a user has a device with an en
language and nil
region code, and thus all NSLocalizedString
lookups in are failing, meaning our string key is what is rendered onscreen. Thus, if we had this in our en.lproj/Localizable.strings
file:
"some_key" = "Some string.";
It would render some_key
instead of Some string.
in our UI.
First question: how do I replicate this scenario locally? This question on Stack seems to almost describe the issue, but does not describe how one enters this state.
Second question: why would iOS not fall back to English in the event the region code was nil
?