5

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 code. Should I use iso639-1 (en) or iso639-2 (eng) code ? http://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 ?

1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.