Appendix D. Language Tags
Language tags are a system defined in RFC 3066, which is used in
various Internet protocols and formats, including HTML, HTTP, and XML. For
example, an HTTP request often has an Accept-Language
header, an HTTP response can
have a Content-Language
header, and any
HTML element can have a lang="en-US"
or
(in XML and XHTML) an xml:lang="en-US"
attribute to indicate that its content is in that language.
There are many more language tags than are presented here; for the full list, see documentation for the Perl module I18N::LangTags::List. This appendix lists major languages, in alphabetical order by their English names.
Tag | Language | Tag | Language |
sq | Albanian | en-us | American English |
ar | Arabic | en-gb | British English |
hy | Armenian | et | Estonian |
as | Assamese | fa | Farsi |
eu | Basque | fi | Finnish |
be | Belarusian | fr | French |
bn | Bengali/Bangla | fr-ca | Canadian French |
bg | Bulgarian | fr-fr | French French |
ca | Catalan | ga | Irish Gaelic |
zh | Chinese | gd | Scots Gaelic |
zh-cn | Mainland Chinese | de | German |
zh-tw | Taiwan Chinese | el | Modern Greek |
hr | Croatian | grc | Ancient Greek |
cs | Czech | gu | Gujarati |
da | Danish | haw | Hawaiian |
nl | Dutch | he | Hebrew |
en | English | hi | Hindi |
hu | Hungarian | pt | Portuguese |
is | Icelandic | pt-br | Brazilian Portuguese |
id | Indonesian | pt-pt | European Portuguese |
it | Italian | pa | Punjabi |
ja | Japanese | ro | Romanian |
kn | Kannada | ru | Russian |
ks | Kashmiri | sa | Sanskrit |
kok | Konkani | sr | Serbian |
ko | Korean | sd | Sindhi |
la | Latin | sk | Slovak |
lv | Latvian | sl | Slovene |
lt | Lithuanian | es | Spanish |
mk | Macedonian | es-es | European Spanish |
ms | Malay | es-mx | Mexican Spanish |
ml | Malayalam | sv | Swedish |
mt | Maltese | tl | Tagalog |
mi | Maori | ta | Tamil |
mr | Marathi | te | Telugu |
mni | Meithei/Manipuri | th | Thai |
ne | Nepali | tr | Turkish |
no |
Get Perl & LWP 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.