onesky / plugin-ios-ota

Over the air plugin
50 stars 8 forks source link

Language fallback logic different than NSLocalizedString #29

Open marhas opened 6 years ago

marhas commented 6 years ago

In our project we have English as base language. We also have a localisation for Australian English (en-AU) and a few other languages.

If the system locale is set to e.g. en-SV, the OneSkyOTAPlugin uses the en-AU language file.

We would like OneSkyOTAPlugin to work exactly like NSLocalizedString: The en-AU localisation should be used if the user has English language and Australian region configured. The base language should be used in all other cases when language is set to English.

I've tested with version 0.10.2 of the plugin and still get this issue.

Thanks, Marcel