Mobile app version of vmapp.org
Login or Join
Cooney921

: I18n website and URL prefix iso639 I'm adding i18n to my website. For translated pages I add iso639 code of the language like this: http://example.com/en/mypage.php But I'm curious about language

@Cooney921

Posted in: #Internationalization #Language #Url

I'm adding i18n to my website. For translated pages I add iso639 code of the language like this:
example.com/en/mypage.php

But I'm curious about language code. Should I use iso639-1 (en) or iso639-2 (eng) code ? en.wikipedia.org/wiki/ISO_639#Relations_between_the_parts
When I check, I see that most of the websites including Wikipedia, uses 2 character language code ? What is the standart or most widely used option for language codes ?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cooney921

1 Comments

Sorted by latest first Latest Oldest Best

 

@Heady270

Two letter language and country abbreviations are much more widely used than their three letter counterparts. Here are some examples:


Locale codes (en_US) such as the ones used in Java
Top level country code domains (.us)
Locale codes recommended by the w3c for use on the web (en-US)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme