Reputation: 378
Due to API version changes, we are now receiving ISO 639-1 (2 letter codes e.g. "en", "fr", "es") instead of ISO 639-2 (3 letter codes e.g. "eng", "frm", "spa").
I found in JAVA we can use locales and use getISO3Language()
method to get 3 letter codes from 2 letter codes.
Client still needs 3 letter codes and having them change their code is not an option... :(
However for codes like "frm" do not have a 2 letter version
fre (B)fra (T) | fr | French
-- | -- | -- |
fre (B)fra (T) | fr | French
frm | | French, Middle (ca.1400-1600)
fro | | French, Old (842-ca.1400)
I know that "frm" and "fra" are synonym codes, can they be used interchangbly? If not, is there a way to get "frm" from ISO 639-1 "fr" code?
Also, Java does have the ability to use subtags from new IANA Language Subtag Registry
But again, how to get the correct ISO 639-2 code from the 2 letter code?
Upvotes: 0
Views: 501