Search code examples
iosxcodelocalizable.strings

iOS: Hindi language localization not working unless region is set to India


I have an app that is made in different languages using localization:

Localized strings

The problem that I have, is that the user also needs to have the region of his phone set to India. If the user's phone is in Hindi but is located in the United States, it will use the default English strings.

Region

How can I use the Hindi strings even if the region is in a different country?


Solution

  • When you added your localization, you chose "Hindi (India)." You wanted to just select "Hindi" which is unconstrained:

    enter image description here

    It's probably easiest to fix this by adding a "hi" localization, copying your strings to it, and then deleting the "hi-IN" localization.