Questions tagged [iso-639-2]

ISO 639-2 Is a 3-letters abbreviation standard for language names, like 'heb', 'eng' and 'spa' for Hebrew, English and Spanish.

ISO 639-2 Is a part of the ISO-639 standard a for language names.

The 639-2 part refers to 3-letters abbreviation standard, as opposed to 639-1 which refers to 2-letters abbreviations.

Examples:

  • heb: Hebrew
  • spa: Spanish
  • eng: English

The list of ISO-639-2 codes can be found on Wikipedia.

5 questions
6
votes
3 answers

Converting language names to ISO 639 language codes

I need to convert language names like 'Hungarian', 'English' to ISO 639 codes. ISO 639-6 would be the best but ISO 639-2 is good enough. What's the best way to achieve this? I should convert the English to locale and get the language with…
Lakatos Gyula
  • 3,949
  • 7
  • 35
  • 56
5
votes
2 answers

How to convert IETF BCP 47 language identifier to ISO-639-2?

I am writing a server API for an iOS application. As a part of the initialization process, the app should send the phone interface language to server via an API call. The problem is that Apple uses something called IETF BCP 47 language identifier in…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
1
vote
2 answers

Android: Get the device interface language in ISO 639 3-letters format?

I am developing an Android application for the global market, which will (hopefully!) be installed by users speaking different languages. Since I want to adjust my interface language to the device's language, I need to acquire that language name in…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
0
votes
0 answers

How to get ISO 639-2 values (for which is there is no ISO 639-1 2 letter code) from ISO 639-1?

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…
Tarnished-Coder
  • 318
  • 2
  • 7
0
votes
2 answers

Getting the device language from iOS and Android in the same format

My team is building an app for Android and iOS. The application receives several notifications from the server, in various forms like push notifications and UI popups. In order to send the messages in the right language, I would like the apps in…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562