Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix android generating old language code for ISO 639
forLanguageTag not converting old ISO 649 format to new as described : The language codes "he", "yi", and "id" are mapped to "iw", "ji", and "in" respectively. (This is the same canonicalization that's done in Locale's constructors.) due to: ISO 639 is not a stable standard; some of the language codes it defines (specifically "iw", "ji", and "in") have changed. This constructor accepts both the old codes ("iw", "ji", and "in") and the new codes ("he", "yi", and "id"), but all other API on Locale will return only the OLD codes. this android issue also described here: https://stackoverflow.com/questions/44245959/android-generating-wrong-language-code-for-indonesia my workaround is similar to one was implemented for OneSignal project OneSignal/OneSignal-Android-SDK@7b9caf5
- Loading branch information