Supported Languages
The list below outlines currently available languages and their respective locale codes.
ar-SA
bg-BG
ca-ES
zh-CN
zh-TW
zh-HK
hr-HR
cs-CZ
da-DK
nl-BE
nl-NL
en-AU
en-CA
en-IE
en-GB
en-US
fi-FI
fr-CA
fr-FR
de-DE
el-GR
he-IL
hu-HU
id-ID
it-IT
ja-JP
ko-KR
ms-MY
nb-NO
pl-PL
pt-BR
pt-PT
ru-RU
sk-SK
es-AR
es-419
es-MX
es-ES
sv-SE
th-TH
tr-TR
uk-UA
List Supported Languages
Lists all languages supported by Lara that can be used when the language parameter is required in an API request. New languages are automatically added as they become available in Lara.
# List all supported languages
languages = lara.languages()
print(languages)
'''
Prints:
[
"de-DE",
"en-US",
"it-IT",
...
]
'''
// List all supported languages
const languages = await lara.getLanguages();
console.log(languages)
/*
Prints:
[
"de-DE",
"en-US",
"it-IT",
...
]
*/
// List all supported languages
List<String> languages = lara.getLanguages();
System.out.println(languages);
/*
Prints:
[
"de-DE",
"en-US",
"it-IT",
...
]
*/
// List all supported languages
$languages = $lara->getLanguages();
print_r($languages);
/*
Prints:
[
"de-DE",
"en-US",
"it-IT",
...
]
*/
// List all supported languages
languages, _ := lara.Languages()
fmt.Println(languages)
/*
Prints:
[
"de-DE",
"en-US",
"it-IT",
...
]
*/
Default Languages
When translating with Lara, it is possible to provide two-code languages for the Translate Text and Translate Document functions. In these cases, the default language listed in the table below will be applied. If no locales are available for a specific language, the only available default language code will be applied.
en
. Default language code applied: en-US
es
. Default language code applied: es-ES
fr
. Default language code applied: fr-FR
pt
. Default language code applied: pr-BR
zh
. Default language code applied: zh-CN
nl
. Default language code applied: nl-NL
Updated 8 days ago