Google Translate has become a go-to tool for translating text across various languages. Whether you’re communicating with someone from a different part of the world or building an application that involves translation, knowing the correct language codes can make the process much easier and smoother.
What Are Google Translate Language Codes?
Google Translate uses specific language codes to represent each supported language. These codes are typically based on the ISO 639-1 standard, which is a two-letter code assigned to each language. For instance:
- English has the code
en
- Spanish has the code
es
- French has the code
fr
- Tamil has the code ta
Google Translate Language Codes
Language | Code |
---|---|
Afrikaans | af |
Albanian | sq |
Amharic | am |
Arabic | ar |
Armenian | hy |
Azerbaijani | az |
Basque | eu |
Belarusian | be |
Bengali | bn |
Bosnian | bs |
Bulgarian | bg |
Catalan | ca |
Cebuano | ceb |
Chichewa | ny |
Chinese (Simplified) | zh-CN |
Chinese (Traditional) | zh-TW |
Corsican | co |
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 |
Hawaiian | haw |
Hebrew | he |
Hindi | hi |
Hmong | hmn |
Hungarian | hu |
Icelandic | is |
Igbo | ig |
Indonesian | id |
Irish | ga |
Italian | it |
Japanese | ja |
Javanese | jv |
Kannada | kn |
Kazakh | kk |
Khmer | km |
Korean | ko |
Kurdish (Kurmanji) | ku |
Kyrgyz | ky |
Lao | lo |
Latvian | lv |
Lithuanian | lt |
Luxembourgish | lb |
Macedonian | mk |
Malagasy | mg |
Malay | ms |
Malayalam | ml |
Maltese | mt |
Maori | mi |
Marathi | mr |
Mongolian | mn |
Nepali | ne |
Norwegian | no |
Pashto | ps |
Persian | fa |
Polish | pl |
Portuguese | pt |
Punjabi | pa |
Romanian | ro |
Russian | ru |
Serbian | sr |
Sesotho | st |
Sinhala | si |
Slovak | sk |
Slovenian | sl |
Somali | so |
Spanish | es |
Sundanese | su |
Swahili | sw |
Swedish | sv |
Tajik | tg |
Tamil | ta |
Telugu | te |
Thai | th |
Turkish | tr |
Ukrainian | uk |
Urdu | ur |
Uzbek | uz |
Vietnamese | vi |
Welsh | cy |
Xhosa | xh |
Yiddish | yi |
Yoruba | yo |
Zulu | zu |
These language codes are essential when using Google Translate APIs or integrating translation features into your tools, spreadsheets, or applications.
Using Google Translate Language Codes with Google Sheets
Google Sheets provides a powerful built-in function called GOOGLETRANSLATE
, which allows you to quickly translate text directly within your spreadsheet. This function requires two key arguments — the source language code and the target language code.
How to Use GOOGLETRANSLATE
in Google Sheets:
- Open your Google Sheets document.
-
In any empty cell, type the following formula:
excelCopy
=GOOGLETRANSLATE(A1, "en", "es")
In this example:-
A1
refers to the cell containing the text you want to translate. -
"en"
is the language code for English (source language). -
"es"
is the language code for Spanish (target language).
-
This will translate the text in cell A1
from English to Spanish.
Example:
If cell A1
contains “Hello”, the formula =GOOGLETRANSLATE(A1, "en", "es")
will output “Hola” (the Spanish translation of “Hello”).
157 total views