This function prints the valid language Google language codes for use with the translate() function.
1 |
1 2 | # print valid language codes
getGoogleLanguages()
|
LANGUAGE CODE
----------------------------
Afrikaans af
Albanian sq
Arabic ar
Armenian hy
Azerbaijani az
Basque eu
Belarusian be
Bengali bn
Bosnian bs
Bulgarian bg
Catalan ca
Cebuano ceb
Chinese Simplified zh-CN
Chinese Traditional zh-TW
Croatian hr
Czech cs
Danish da
Dutch nl
English en
Esperanto eo
Estonian et
Filipino tl
Finnish fi
French fr
Galician gl
Georgian ka
German de
Greek el
Gujarati gu
Haitian Creole ht
Hausa ha
Hebrew iw
Hindi hi
Hmong hmn
Hungarian hu
Icelandic is
Igbo ig
Indonesian id
Irish ga
Italian it
Japanese ja
Javanese jw
Kannada kn
Khmer km
Korean ko
Lao lo
Latin la
Latvian lv
Lithuanian lt
Macedonian mk
Malay ms
Maltese mt
Maori mi
Marathi mr
Mongolian mn
Nepali ne
Norwegian no
Persian fa
Polish pl
Portuguese pt
Punjabi pa
Romanian ro
Russian ru
Serbian sr
Slovak sk
Slovenian sl
Somali so
Spanish es
Swahili sw
Swedish sv
Tamil ta
Telugu te
Thai th
Turkish tr
Ukrainian uk
Urdu ur
Vietnamese vi
Welsh cy
Yiddish yi
Yoruba yo
Zulu zu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.