Appendix G. Language Codes

The following table shows the two-letter ISO 639 language codes that are used to declare the language of a document in the lang and xml:lang attributes. It covers many of the world's major languages.

Country

ISO Code

Abkhazian

AB

Afan (Oromo)

OM

Afar

AA

Afrikaans

AF

Albanian

SQ

Amharic

AM

Arabic

AR

Armenian

HY

Assamese

AS

Aymara

AY

Azerbaijani

AZ

Bashkir

BA

Basque

EU

Bengali; Bangla

BN

Bhutani

DZ

Bihari

BH

Bislama

BI

Breton

BR

Bulgarian

BG

Burmese

MY

Byelorussian

BE

Cambodian

KM

Catalan

CA

Chinese

ZH

Corsican

CO

Croatian

HR

Czech

CS

Danish

DA

Dutch

NL

English

EN

Esperanto

EO

Estonian

ET

Faroese

FO

Fiji

FJ

Finnish

FI

French

FR

Frisian

FY

Galician

GL

Georgian

KA

German

DE

Greek

EL

Greenlandic

KL

Guarani

GN

Gujarati

GU

Hausa

HA

Hebrew

HE

Hindi

HI

Hungarian

HU

Icelandic

IS

Indonesian

ID

Interlingua

IA

Interlingue

IE

Inuktitut

IU

Inupiak

IK

Irish

GA

Italian

IT

Japanese

JA

Javanese

JV

Kannada

KN

Kashmiri

KS

Kazakh

KK

Kinyarwanda

RW

Kirghiz

KY

Korean

KO

Kurdish

KU

Kurundi

RN

Laothian

LO

Latin

LA

Latvian; Lettish

LV

Lingala

LN

Lithuanian

LT

Macedonian

MK

Malagasy

MG

Malay

MS

Malayalam

ML

Maltese

MT

Maori

MI

Marathi

MR

Moldavian

MO

Mongolian

MN

Nauru

NA

Nepali

NE

Norwegian

NO

Occitan

OC

Oriya

OR

Pashto; Pushto

PS

PERSIAN (Farsi)

FA

Polish

PL

Portuguese

PT

Punjabi

PA

Quechua

QU

Rhaeto-Romance

RM

Romanian

RO

Russian

RU

Samoan

SM

Sangho

SG

Sanskrit

SA

Scots Gaelic

GD

Serbian

SR

Serbo-Croatian

SH

Sesotho

ST

Setswana

TN

Shona

SN

Sindhi

SD

Singhalese

SI

Siswati

SS

Slovak

SK

Slovenian

SL

Somali

SO

Spanish

ES

Sudanese

SU

Swahili

SW

Swedish

SV

Tagalog

TL

Tajik

TG

Tamil

TA

Tatar

TT

Telugu

TE

Thai

TH

Tibetan

BO

Tigrinya

TI

Tonga

TO

Tsonga

TS

Turkish

TR

Turkmen

TK

Twi

TW

Uigur

UG

Ukrainian

UK

Urdu

UR

Uzbek

UZ

Vietnamese

VI

Volapuk

Get Beginning Web Programming with HTML, XHTML, and CSS, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.