Sheetrans 文档翻译

Sheetrans API Documentation

API Version:

v.1.0.3

Translate JSON

Description:

Translate JSON content.

POST

Endpoint:

https://api.sheetrans.com/document/translate_json

Request Header:

X-API-KEY:YOUR-API-KEY

Request Body:

{
    "from_lang": "zh",
    "to_lang": "en",
    "content": {"key1":"你好","key2":"你叫什么名字?", "key3":"你从哪里来?"},
    "only_keys": ["key1", "key2"]
}

Request Parameters:

from_lang:

The language code of the source content (e.g., "en" for English).

to_lang:

The language code to which the content should be translated (e.g., "cn" for Chinese).

content:

The JSON content to be translated.

only_keys:

Specify the JSON key to translate. If this parameter is not set, it will translate all.

Response (HTTP 200):

{
    "code": 200,
    "message": "success",
    "content": {"key":"Hello"},
    "char_total": 110
}

Supported Languages

  • zh - Chinese
  • zh-tw - Traditional Chinese
  • yue - Cantonese
  • en - English
  • ja - Japanese
  • ko - Korean
  • fr - French
  • ru - Russian
  • de - German
  • zu - Zulu
  • jv - Javanese
  • zza - Zaza
  • vi - Vietnamese
  • yo - Yoruba
  • inh - Ingush
  • id - Indonesian
  • hi - Hindi
  • ia - Interlingua
  • yi - Yiddish
  • it - Italian
  • iu - Inuktitut
  • ilo - Ilokano
  • io - Ido
  • ig - Igbo
  • iba - Iban
  • ace - Acehnese
  • hy - Armenian
  • su - Sundanese
  • syr - Syriac
  • ceb - Cebuano
  • sn - Shona
  • hu - Hungarian
  • sd - Sindhi
  • lfn - Lingua Franca Nova
  • el - Modern Greek
  • haw - Hawaiian
  • hil - Hiligaynon
  • he - Hebrew
  • szl - Silesian
  • fy - West Frisian
  • ie - Interlingue
  • es - Spanish
  • uz - Uzbek
  • ur - Urdu
  • udm - Udmurt
  • wo - Wolof
  • vo - Volapük
  • ve - Venda
  • cy - Welsh
  • war - Waray (Philippines)
  • wa - Walloon
  • tk - Turkmen
  • tr - Turkish
  • tyv - Tuvan
  • tvl - Tuvaluan
  • ti - Tigrinya
  • toi - Tonga (Zambia)
  • to - Tongan (Tonga)
  • th - Thai
  • ta - Tamil
  • te - Telugu
  • ty - Tahitian
  • tg - Tajik
  • tl - Tagalog
  • sk - Slovak
  • so - Somali
  • sw - Swahili
  • sl - Slovenian
  • eo - Esperanto
  • hsb - Upper Sorbian
  • si - Sinhala
  • sg - Sango
  • sm - Samoan
  • sv - Swedish
  • chr - Cherokee
  • tw - Twi
  • ny - Chichewa
  • ps - Pashto
  • pt - Portuguese
  • pa - Punjabi
  • pap - Papiamento
  • pmn - Pamlico
  • no - Norwegian
  • niu - Niuean
  • ne - Nepali
  • af - Afrikaans
  • nv - Navajo
  • umb - Umbundu
  • hmn - Hmong
  • my - Burmese
  • bn - Bengali
  • mn - Mongolian
  • mi - Maori
  • mfe - Mauritian Creole
  • mai - Maithili
  • kek - Maya
  • mh - Marshallese
  • mk - Macedonian
  • chm - Mari (Russia)
  • ms - Malay
  • ml - Malayalam
  • mr - Marathi
  • mt - Maltese
  • gv - Manx
  • mg - Malagasy
  • jbo - Lojban
  • rom - Romani
  • rm - Romansh
  • ro - Romanian
  • rw - Kinyarwanda
  • rue - Rusyn
  • lb - Luxembourgish
  • lg - Luganda
  • ln - Lingala
  • li - Limburgish
  • lt - Lithuanian
  • lo - Lao
  • lv - Latvian
  • ltg - Latgalian
  • la - Latin
  • ku - Kurdish
  • ks - Kashmiri
  • qu - Quechua
  • hbs - Croatian
  • tlh - Klingon
  • crh - Crimean Tatar
  • mus - Creek
  • co - Corsican
  • xh - Xhosa
  • kw - Cornish
  • kha - Khasi
  • csb - Kashubian
  • kr - Kanuri
  • kn - Kannada
  • kab - Kabyle
  • cs - Czech
  • ca - Catalan
  • gl - Galician
  • ky - Kyrgyz
  • quc - K'iche'
  • rn - Kirundi
  • gil - Kiribati
  • hup - Hupa
  • cnr - Montenegrin
  • nl - Dutch
  • ha - Hausa
  • ht - Haitian Creole
  • kk - Kazakh
  • gn - Guaraní
  • gu - Gujarati
  • gos - Gronings
  • ka - Georgian
  • kl - Kalaallisut
  • ngu - Gallo
  • km - Khmer
  • kg - Kongo
  • fvr - Fur
  • fur - Friulian
  • fi - Finnish
  • fj - Fijian
  • fil - Filipino
  • sa - Sanskrit
  • fo - Faroese
  • dtp - Dusun
  • kdx - Kabyle
  • dv - Divehi
  • sco - Scots
  • nds - Low German
  • tet - Tetum
  • shn - Shan
  • da - Danish
  • tt - Tatar
  • ts - Tsonga
  • cv - Chuvash
  • cbk - Chavacano
  • ch - Chamorro
  • br - Breton
  • bho - Bhojpuri
  • fa - Persian
  • bs - Bosnian
  • pl - Polish
  • is - Icelandic
  • bal - Balochi
  • bi - Bislama
  • byn - Blin
  • bem - Bemba
  • se - Northern Sami
  • bg - Bulgarian
  • pag - Pangasinan
  • bm - Bambara
  • ber - Berber
  • be - Belarusian
  • eu - Basque
  • ba - Bashkir
  • tpi - Tok Pisin
  • os - Ossetian
  • om - Oromo
  • or - Oriya
  • oc - Occitan
  • oj - Ojibwe
  • et - Estonian
  • ga - Irish
  • ay - Aymara
  • ee - Ewe
  • nch - Nahuatl
  • ast - Asturian
  • az - Azerbaijani
  • as - Assamese
  • am - Amharic
  • an - Aragonese
  • ar - Arabic
  • ak - Akan
  • sq - Albanian
  • ab - Abkhazian