Language Codes (BCP 47)
FloatTranslate identifies translation languages with a defined subset of BCP 47. This page defines the language codes FloatTranslate recognizes and how they resolve.
The FloatTranslate profile
Section titled “The FloatTranslate profile”Accepted tags use the shape language[-Script][-REGION], for example en, en-US, zh-Hant-HK, sr-Cyrl-RS, or mn-Mong-CN. Language-code matching is case-insensitive and uses standard BCP 47 casing after resolution.
FloatTranslate resolves a language code in this order:
- An exact canonical code.
- An explicit mapping listed below.
- The most specific canonical parent in the catalog.
Variants, extensions, private-use tags, and values that cannot resolve to a canonical catalog code are not recognized as translation language codes.
Code mappings
Every code form on the left resolves to the code on the right.
| Code forms | Resolves to |
|---|---|
zhzh-CNzh-SG | zh-Hans |
zh-HKzh-MOzh-TW | zh-Hant |
pt | pt-PT |
Complete code list
| Code | Language |
|---|---|
af | Afrikaans |
am | Amharic · አማርኛ |
ar | Arabic · العربية |
az | Azerbaijani · Azərbaycan |
be | Belarusian · Беларуская |
bg | Bulgarian · Български |
bn | Bengali · বাংলা |
bs | Bosnian · Bosanski |
ca | Catalan · Català |
cs | Czech · Čeština |
cy | Welsh · Cymraeg |
da | Danish · Dansk |
de | German · Deutsch |
el | Greek · Ελληνικά |
en | English |
eo | Esperanto |
es | Spanish · Español |
et | Estonian · Eesti |
eu | Basque · Euskara |
fa | Persian · فارسی |
fi | Finnish · Suomi |
fil | Filipino |
fr | French · Français |
ga | Irish · Gaeilge |
gl | Galician · Galego |
gu | Gujarati · ગુજરાતી |
he | Hebrew · עברית |
hi | Hindi · हिन्दी |
hr | Croatian · Hrvatski |
hu | Hungarian · Magyar |
hy | Armenian · Հայերեն |
id | Indonesian · Bahasa Indonesia |
is | Icelandic · Íslenska |
it | Italian · Italiano |
ja | Japanese · 日本語 |
ka | Georgian · ქართული |
kk | Kazakh · Қазақ |
km | Khmer · ខ្មែរ |
kn | Kannada · ಕನ್ನಡ |
ko | Korean · 한국어 |
lo | Lao · ລາວ |
lt | Lithuanian · Lietuvių |
lv | Latvian · Latviešu |
lzh | Classical Chinese · 文言文 |
mk | Macedonian · Македонски |
ml | Malayalam · മലയാളം |
mn | Mongolian · Монгол |
mn-Mong | Mongolian (Traditional) · ᠮᠣᠩᠭᠣᠯ |
mr | Marathi · मराठी |
ms | Malay · Bahasa Melayu |
mt | Maltese · Malti |
my | Burmese · မြန်မာ |
nb | Norwegian Bokmål · Norsk bokmål |
ne | Nepali · नेपाली |
nl | Dutch · Nederlands |
no | Norwegian · Norsk |
pa | Punjabi · ਪੰਜਾਬੀ |
pl | Polish · Polski |
pt-BR | Portuguese (Brazil) · Português (Brasil) |
pt-PT | Portuguese (Portugal) · Português (Portugal) |
ro | Romanian · Română |
ru | Russian · Русский |
si | Sinhala · සිංහල |
sk | Slovak · Slovenčina |
sl | Slovenian · Slovenščina |
sq | Albanian · Shqip |
sr | Serbian · Српски |
sr-Cyrl | Serbian (Cyrillic) · Српски (ћирилица) |
sv | Swedish · Svenska |
sw | Swahili · Kiswahili |
ta | Tamil · தமிழ் |
te | Telugu · తెలుగు |
th | Thai · ไทย |
tr | Turkish · Türkçe |
uk | Ukrainian · Українська |
ur | Urdu · اردو |
uz | Uzbek · Oʻzbek |
vi | Vietnamese · Tiếng Việt |
zh-Hans | Chinese (Simplified) · 简体中文 |
zh-Hant | Chinese (Traditional) · 繁體中文 |
Translation services may support different languages. Actual availability depends on your selected translation service.
Use a code for one translation
Section titled “Use a code for one translation”In a command-aware text entry, put /language-code at the beginning, followed by a space and the source text. For example, /ja Hello translates Hello to Japanese for that request.
This syntax works when you explicitly start Input Field Translation, Translate Selected Text, a clipboard translation, or a translation from text you typed or edited in the Translation Panel. A custom workflow uses it only when its text entry explicitly enables language commands. The result can appear in the full panel, the Mini Panel, or a silent replacement without changing how the command is interpreted.
Automatic translation, OCR or screenshot text, screen text capture, history restore, retry, reverse translation, fallback, and cached results never interpret their text as a language command.
If a code in command position is not recognized, Float Translate stops before contacting a translation service and keeps the original text. Check the code, or add another slash to translate it literally: //en text translates /en text, and ///en text translates //en text.