It seems ISO 639 is the de-facto language ISO. Is there any plans for, or does there already exist, information as to each countries official language(s), preferably in some standard form. ISO 639 seems to be widely used.
If neither of these are true, does anyone know where I can find this information readily available. I’m in the process of writing a python script to associate the “most popular” language ISO 639-1 code with each ISO 3166-1-a2 country code.
IE Canada has both EN(English) and FR(French) as it’s official languages, which EN being far more prominent so EN_CA is formed.
The United States doesn’t have an official language which makes me think I need to set a default of EN. While this isn’t 100% accurate, it’s good enough for not having any other source of this information. I need the two codes since I found a file with many country names translate to many other country names. Canada, for example, has been translated to 366 languages.