> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cursebot.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Translation Languages

> Break down communication barriers in your community with @curse's multi language support. These are all the available languages for the translation/octr command.

## 1. How to Use a Language Code?

The translation command allows you to convert text from one language to another using specific language codes. The syntax is structured so that you first specify the target language, then the source language, followed by the text you want to translate. Both the **(to)** and **(from)** parameters must be valid language codes, which you can find in the language table below (for example, `en` for English, `fr` for French, `es` for Spanish, etc.).

For example, if you want to translate a sentence from English to French, you would use the French language code `fr` as the target language and `en` as the source language:

<CodeGroup>
  ```javascript File Example theme={null}
  ;translate fr en Hello, how are you?
  ```

  ```javascript File Syntax theme={null}
  ;translate (to) (from) (text)
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/cursebotsite/Np8UeYwnZNwIepv1/images/translate-cmd.png?fit=max&auto=format&n=Np8UeYwnZNwIepv1&q=85&s=673d5634e108b88d79243352d7dd1c65" alt="Translate Cmd" title="Translate Cmd" width="499" height="302" data-path="images/translate-cmd.png" />
</Frame>

This command translates the text “Hello, how are you?” from **English** into **French**.

You can also translate text directly from an image using the OCR translation command. This command extracts text from the provided image URL and then translates it into the specified language.

<CodeGroup>
  ```javascript File Example theme={null}
  ;ocrtr https://cursebot.site/image.png en
  ```

  ```javascript File Syntax theme={null}
  ;ocrtr <url> <language>
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/cursebotsite/Np8UeYwnZNwIepv1/images/ocrtr-cmd.png?fit=max&auto=format&n=Np8UeYwnZNwIepv1&q=85&s=50ab760ca463cf5adcfd010b549d6dca" alt="Ocrtr Cmd" width="666" height="378" data-path="images/ocrtr-cmd.png" />
</Frame>

This will extract the text from the image and translate it into English (`en`).

## 2. Language Reference Table

Use these codes to precisely define your translation source and destination.

| **Language**        | **Code** |
| :------------------ | :------- |
| English             | `en`     |
| Spanish             | `es`     |
| French              | `fr`     |
| German              | `de`     |
| Italian             | `it`     |
| Portuguese          | `pt`     |
| Russian             | `ru`     |
| Japanese            | `ja`     |
| Korean              | `ko`     |
| Chinese             | `zh`     |
| Abkhazian           | `ab`     |
| Afar                | `aa`     |
| Afrikaans           | `af`     |
| Akan                | `ak`     |
| Albanian            | `sq`     |
| Amharic             | `am`     |
| Arabic              | `ar`     |
| Aragonese           | `an`     |
| Armenian            | `hy`     |
| Assamese            | `as`     |
| Avaric              | `av`     |
| Avestan             | `ae`     |
| Aymara              | `ay`     |
| Azerbaijani         | `az`     |
| Bambara             | `bm`     |
| Bashkir             | `ba`     |
| Basque              | `eu`     |
| Belarusian          | `be`     |
| Bengali             | `bn`     |
| Bihari              | `bh`     |
| Bislama             | `bi`     |
| Bosnian             | `bs`     |
| Breton              | `br`     |
| Bulgarian           | `bg`     |
| Burmese             | `my`     |
| Catalan             | `ca`     |
| Chamorro            | `ch`     |
| Chechen             | `ce`     |
| Chichewa            | `ny`     |
| Chuvash             | `cv`     |
| Cornish             | `kw`     |
| Corsican            | `co`     |
| Cree                | `cr`     |
| Croatian            | `hr`     |
| Czech               | `cs`     |
| Danish              | `da`     |
| Divehi              | `dv`     |
| Dutch               | `nl`     |
| Dzongkha            | `dz`     |
| Esperanto           | `eo`     |
| Estonian            | `et`     |
| Ewe                 | `ee`     |
| Faroese             | `fo`     |
| Fijian              | `fj`     |
| Finnish             | `fi`     |
| Fula                | `ff`     |
| Galician            | `gl`     |
| Georgian            | `ka`     |
| Greek               | `el`     |
| Guarani             | `gn`     |
| Gujarati            | `gu`     |
| Haitian Creole      | `ht`     |
| Hausa               | `ha`     |
| Hebrew              | `he`     |
| Herero              | `hz`     |
| Hindi               | `hi`     |
| Hiri Motu           | `ho`     |
| Hungarian           | `hu`     |
| Interlingua         | `ia`     |
| Indonesian          | `id`     |
| Interlingue         | `ie`     |
| Irish               | `ga`     |
| Igbo                | `ig`     |
| Inupiaq             | `ik`     |
| Ido                 | `io`     |
| Icelandic           | `is`     |
| Inuktitut           | `iu`     |
| Javanese            | `jv`     |
| Kalaallisut         | `kl`     |
| Kannada             | `kn`     |
| Kanuri              | `kr`     |
| Kashmiri            | `ks`     |
| Kazakh              | `kk`     |
| Khmer               | `km`     |
| Kikuyu              | `ki`     |
| Kinyarwanda         | `rw`     |
| Kyrgyz              | `ky`     |
| Komi                | `kv`     |
| Kongo               | `kg`     |
| Kurdish             | `ku`     |
| Kwanyama            | `kj`     |
| Latin               | `la`     |
| Luxembourgish       | `lb`     |
| Luganda             | `lg`     |
| Limburgish          | `li`     |
| Lingala             | `ln`     |
| Lao                 | `lo`     |
| Lithuanian          | `lt`     |
| Luba-Katanga        | `lu`     |
| Latvian             | `lv`     |
| Manx                | `gv`     |
| Macedonian          | `mk`     |
| Malagasy            | `mg`     |
| Malay               | `ms`     |
| Malayalam           | `ml`     |
| Maltese             | `mt`     |
| Maori               | `mi`     |
| Marathi             | `mr`     |
| Marshallese         | `mh`     |
| Mongolian           | `mn`     |
| Nauru               | `na`     |
| Navajo              | `nv`     |
| Norwegian Bokmål    | `nb`     |
| Northern Ndebele    | `nd`     |
| Nepali              | `ne`     |
| Ndonga              | `ng`     |
| Norwegian Nynorsk   | `nn`     |
| Norwegian           | `no`     |
| Sichuan Yi          | `ii`     |
| Southern Ndebele    | `nr`     |
| Occitan             | `oc`     |
| Ojibwe              | `oj`     |
| Old Church Slavonic | `cu`     |
| Oromo               | `om`     |
| Odia                | `or`     |
| Ossetian            | `os`     |
| Punjabi             | `pa`     |
| Pali                | `pi`     |
| Persian             | `fa`     |
| Polish              | `pl`     |
| Pashto              | `ps`     |
| Quechua             | `qu`     |
| Romansh             | `rm`     |
| Rundi               | `rn`     |
| Romanian            | `ro`     |
| Sanskrit            | `sa`     |
| Sardinian           | `sc`     |
| Sindhi              | `sd`     |
| Northern Sami       | `se`     |
| Samoan              | `sm`     |
| Sango               | `sg`     |
| Serbian             | `sr`     |
| Scottish Gaelic     | `gd`     |
| Shona               | `sn`     |
| Sinhala             | `si`     |
| Slovak              | `sk`     |
| Slovene             | `sl`     |
| Somali              | `so`     |
| Sesotho             | `st`     |
| Sundanese           | `su`     |
| Swahili             | `sw`     |
| Swati               | `ss`     |
| Swedish             | `sv`     |
| Tamil               | `ta`     |
| Telugu              | `te`     |
| Tajik               | `tg`     |
| Thai                | `th`     |
| Tigrinya            | `ti`     |
| Tibetan             | `bo`     |
| Turkmen             | `tk`     |
| Tagalog             | `tl`     |
| Tswana              | `tn`     |
| Tonga               | `to`     |
| Turkish             | `tr`     |
| Tsonga              | `ts`     |
| Tatar               | `tt`     |
| Twi                 | `tw`     |
| Tahitian            | `ty`     |
| Uighur              | `ug`     |
| Ukrainian           | `uk`     |
| Urdu                | `ur`     |
| Uzbek               | `uz`     |
| Venda               | `ve`     |
| Vietnamese          | `vi`     |
| Volapük             | `vo`     |
| Walloon             | `wa`     |
| Welsh               | `cy`     |
| Wolof               | `wo`     |
| Western Frisian     | `fy`     |
| Xhosa               | `xh`     |
| Yiddish             | `yi`     |
| Yoruba              | `yo`     |
| Zhuang              | `za`     |
| Zulu                | `zu`     |
