SwiftMoment icon indicating copy to clipboard operation
SwiftMoment copied to clipboard

Check non EN language support for Regions

Open madhavajay opened this issue 8 years ago • 1 comments

@twairball pointed out that 2 letter Language abbreviations won't work with other languages like zh-Hant_US?

We should look at a better way to solve this problem. I also don't know if the Bundle solution is the best solution either. It might be better to consider i18n strings.

madhavajay avatar Jul 21 '16 07:07 madhavajay

After some testing, I think chopping off the region (e.g. _US), if it exists (for ios9+), is an okay fallback. It is hacky and prone to Apple changing again. But it will guarantee a fallback.

Bundle solution is "least surprise" but considering how most app developers skip formal localization it will likely result in plain old en

I think since the problem is "" happening, an option for default locale could also be appropriate?

twairball avatar Jul 22 '16 02:07 twairball