Set a language code for translated pages
How to set a page to display a different script or font for languages that don't use the Latin alphabet.
We need to tell the CMS what language is being used so it can display the content correctly - using the correct font and also setting the reading direction (for languages that read right-to-left).
ISO 639 is the international standardised naming system that Drupal uses to classify languages. If a language is not listed on 639-1, check 639-2 and 639-3.
For information about preparing content for translation, see our Producing multilingual content – digital guide.
How to set the language code
Find the code in the table below and open your content page in the CMS.
On the right side of the screen you'll see a sidebar. Click on the Metatags heading to reveal more detail. Use Ctrl + F to search for the word ‘locale’. You’ll find it in the Open Graph section of the Metatags.
In the Locale field, enter the code in the Content language field. (Use the codes provided below.
Save your page.
Note that fonts that read right-to-left (such as Arabic) will display that way on the live page when the language code is set.
List of language codes and the fonts currently in use on SDP
Where the font column has 'NA' the language uses the same font as English.
If there is a language not found below that you would like on vic.gov.au, please submit a platform enhancement request.
Language | Code | Right-to left? | Font |
Acholi | ach |
| TBC |
Albanian | sq |
| TBC |
Amharic | am |
| |
Arabic | ar | Yes | |
Assyrian | aii | Yes | |
Bengali | bn |
| |
Bosnian | bs |
| NA |
Burmese | my |
| |
Chaldean | cld | Yes | |
Chin - Hakha Chin | cnh |
| NA |
Chinese – simplified | zh-Hans |
| |
Chinese - traditional | zh-Hant |
| |
Cook Islands Maori - Kuki Airani | rar |
| NA |
Croatian | hr |
| NA |
Dari | prs | Yes | |
Dinka | din |
| Arial |
Falam | cfm |
| TBC |
Farsi (Persian) | fa | Yes | |
Fijian | fj |
| NA |
Filipino | fil |
| NA |
Filipino - Tagalog | tl |
| NA |
French | af |
| NA |
Greek | el |
| |
Gujarati | gu |
| |
Hakka | hak |
| NA |
Hazaragi | haz | Yes | |
Hebrew | he | Yes | TBC |
Hindi | hi |
| |
Indonesian | id |
| NA |
Italian | it |
| NA |
Japanese | ja |
| |
Karen | kar |
| |
Karenni | kyu |
| |
Khmer | km |
| |
Korean | ko |
| |
Kurdish (Northern) - Kurmanji (کورمانجی) | kmr | Yes | |
Kurdish (Central) - Sorani (کرمانجیی خواروو) | ckb | Yes | |
Macedonian | mk |
| |
Malay | ms |
| NA |
Malayalam | ml |
| NA |
Maltese | mt |
| NA |
Nepali | ne |
| |
Niuean - Vagahau Niue | niu |
| NA |
Nuer | nus |
| Arial |
Oromo | om |
| NA |
Pashto | ps | Yes | |
Polish | pl |
| NA |
Portugese | pt |
| NA |
Punjabi | pa |
| |
Rohingya | rhg |
| NA |
Russian | ru |
| |
Samoan | sm |
| NA |
Serbian | sr |
| |
Sinhalese | si |
| |
Somali | so |
| NA |
Spanish | es |
| NA |
Swahili | sw |
| NA |
Tamil | ta |
| |
Thai | th |
| |
Telugu | te |
|
|
Tigrinya | ti |
| |
Tongan | to |
| NA |
Turkish | tur |
| NA |
Urdu | ur | Yes | |
Vietnamese | vi |
| |
Zomi | ctd |
| NA |