Closed 1ec5 closed 6 years ago
Several ISO 639 identifiers, such as mo
/mol
, have been deprecated as well, but I’m unaware of any operating systems that prefer them over the standard identifiers. #1 would be a more effective way of increasing ISO 639 coverage.
👍 , I think it'd be fair to handle deprecated locales here.
@1ec5 on second thought, this library does not have any concern to the locales passed into it. I think this ticket needs to be moved elsewhere.
While it is the case that the client has to pass in the available language codes and the code to match, this library should be responsible for knowing that he
and iw
are synonymous. For example, locale.bestMatchingLocale('iw', ['he']))
should return true
, but it currently returns false
.
Okay, that makes sense.
The following ISO 639:1988 codes were deprecated 21 years ago, but Android’s
Locale.getLanguage()
method still returns them:iw
for Hebrew, replaced byhe
ji
for Yiddish, replaced byyi
in
for Indonesian, replaced byid
This library should map the deprecated codes to the standard ISO 639-1 equivalents, so that Android developers who interact with an API that uses this library don’t have to worry about these otherwise obscure codes.
/cc @bsudekum @danesfeder @devotaaabel @danpaz @Guardiola31337