Mag-skip sa main content

Mga Supported na Language

Ang rosetta ay may kasamang Language Cards — mga structured configuration file para sa 50 na language. Ang bawat card ay naglalaman ng mga register preset, formality system metadata, method support flags, typography rules, at script information. Kahit anong language na alam ng inyong LLM ay pwedeng i-add gamit ang isang config line — ito po ang mga may curated at production-ready na mga register.


Mga Translation Method

Ang bawat language ay pwedeng gumamit ng isa o higit pa sa mga translation method na ito:

IconMethodPaano Ito GumaganaCost
🟢Google TranslateNeural MT baseline. 130+ na language. Key-value strings lang — hindi safe na i-translate ang Markdown content.~$20/1M chars
🔵LLM (OpenRouter)Kahit anong language na alam ng model. Register-steered prompts. Kayang i-handle ang key-value + Markdown content.Nakadepende sa model
🟣LLM-CoachedLLM + grammar dictionaries + coaching data na naka-inject sa mga prompt. Best para sa mga morphologically complex na language.Nakadepende sa model
🟠API (Plugin)Mga community-hosted na translation pipeline na sineserve over HTTP. OCAP-compatible.Nakadepende sa provider

I-set ang GOOGLE_TRANSLATE_API_KEY para sa Google Translate, o OPENROUTER_API_KEY para sa mga LLM method. Tingnan po ang Mga Translation Method para sa buong detalye.


Mga Priority Language

Ito po ang mga pinakamadalas i-request na locale para sa mga web at mobile application, na naka-list sa recommended accessibility-first order ng rosetta.

FlagLanguageCodeGoogleLLMCoachedScriptNotes
🇸🇦ArabicarRTL. Modern Standard Arabic (فصحى).
🇵🇭Filipino (Taglish)tl / filGamitin ang fil sa mga Docusaurus config. Nire-resolve ng rosetta pareho.
🇫🇷FrenchfrVous-form. Gender-inclusive (Connecté·e).
🇪🇸SpanishesNeutral Latin American.
🇩🇪GermandeSie-form. Gender-inclusive (Benutzer:innen).
🇯🇵Japanesejaです/ます para sa body text, する para sa mga UI label.
🇨🇳Chinese (Simplified)zh简体中文.
🇮🇹ItalianitLei-form.
🇧🇷Portuguese (BR)ptBrazilian Portuguese.
🇰🇷Koreanko해요체 polite register.

Mga Major World Language

FlagLanguageCodeGoogleLLMCoachedScriptNotes
🇧🇩Bengalibnশুদ্ধ ভাষা preference.
🇧🇬Bulgarianbg
🇨🇿CzechcsVykání (vy-form).
🇩🇰Danishda
🇬🇷GreekelModern Δημοτική.
🇮🇷PersianfaRTL.
🇫🇮FinnishfiWalang grammatical gender.
🇮🇱HebrewheRTL.
🇮🇳Hindihiशुद्ध हिन्दी. Minimal na mga English loanword.
🇭🇺HungarianhuÖn-form.
🇮🇩Indonesianid
🇲🇾Malayms
🇳🇱DutchnlU-form.
🇳🇴NorwegiannbBokmål.
🇵🇱PolishplPan/Pani form.
🇵🇹Portuguese (EU)pt-PTEuropean Portuguese.
🇷🇴Romanianro
🇷🇺RussianruВы-form.
🇸🇰SlovakskVykanie (vy-form).
🇷🇸Serbiansr🔤 Latin→CyrillicDeterministic script converter.
🇸🇪Swedishsv
🇰🇪Swahilisw
🇹🇭Thaithครับ/ค่ะ politeness particles.
🇹🇷TurkishtrSiz-form.
🇺🇦UkrainianukВи-form.
🇵🇰UrduurRTL. آپ form.
🇻🇳Vietnamesevi
🇹🇼Chinese (Traditional)zh-TW繁體中文.
🇬🇪Georgiankaქართული. Kartvelian family.
🇳🇬YorubayoÈdè Yorùbá. Tonal (3 tones).

Mga Regional Variant

FlagLanguageCodeGoogleLLMCoachedScriptNotes
🇲🇽Mexican Spanishes-MXTú-form. Warm register.
🇨🇦Canadian Frenchfr-CAMga Québécois idiom.

Mga Indigenous & Low-Resource Language

Ang mga language na ito ay hindi supported ng mga commercial MT service. Nagpo-provide ang rosetta ng tooling para sa mga language community upang makabuo ng sarili nilang mga method sa ilalim ng mga OCAP principle.

LanguageCodeGoogleLLMCoachedScriptStatus
🪶Plains Creecrk🔤 SRO→Syllabics🚧 Under development
🌄QuechuaquRunasimi. Mga evidential suffix.

:::info Ang Plains Cree ay under active development Functional na po ang register, coaching infrastructure, script converter, at evaluation harness para sa Plains Cree, pero hindi pa narerelease ang translation pipeline. Nakikipag-work kami sa mga language community sa ilalim ng mga OCAP principle para masiguro ang quality bago ito i-release. Tingnan ang Suportahan ang isang Low-Resource Language para sa buong kwento — at kung paano kayo pwedeng mag-contribute. :::

:::tip Pag-add ng mas marami pang low-resource language Naka-design ang method plugin system ng rosetta para dito. Pwedeng gumawa ang isang language community ng custom translation method, i-host ito under their own control, at i-serve ito via the API method. Tinu-track ng Method Leaderboard ang mga score para sa kahit anong language pair — mag-build ng method, i-run ang harness, at i-claim ang top score. :::


Mga Constructed Language

Supported ang mga conlang via LLM registers at optional na mga script converter. Gumagamit sila ng parehong infrastructure tulad ng mga totoong language — identically na gumagana ang quality gate, coaching system, at script conversion pipeline.

LanguageCodeGoogleLLMScriptNotes
🖖Klingontlh🔤 Romanization→pIqaDKailangan ng PUA font. Marc Okrand vocabulary.
🧝Sindarin (Tolkien Elvish)x-elvish-s🔤 Latin→TengwarKailangan ng CSUR PUA font.
🏴‍☠️Pirate Englishx-pirateRegister lang. Mga nautical metaphor.
🦸Kryptonianx-kryptonian🔤 Latin→KryptonianKailangan ng PUA font.
🎭Shakespearean Englishx-shakespeareRegister lang. Thee/thou, -eth/-est forms.
🐸Yoda-speakx-yodaRegister lang. OSV word order.

Tingnan po ang Mga Conlang, Script, at Orthography para sa mga PUA font requirement, Unicode limitation, at kung paano i-add ang inyong sariling conlang.


Mga Language Preset

Sinu-support ng init wizard ang mga preset name para sa quick setup. Pwede ninyong i-mix ang mga preset sa mga individual code.

PresetNag-eexpand Sa
europeanfr, de, es, it, pt, nl
asianja, zh, ko
globalfr, es, de, ja, zh, ko, pt, ar
nordicda, fi, nb, sv
# Mix presets with individual codes
i18n-rosetta init
# → Target languages: european, ja
# → Resolves to: fr, de, es, it, pt, nl, ja

Pag-add ng Kahit Anong Language

Kaya ng rosetta na mag-translate sa kahit anong language na alam ng inyong LLM — naka-list lang sa table sa itaas ang mga language na may built-in na mga register preset. Para mag-add ng unlisted language, i-include lang ang BCP-47 code nito sa inyong config:

{
"languages": {
"sw": {},
"am": {
"register": "Formal Amharic. Professional register with Geʽez script."
}
}
}

Magta-translate ang LLM gamit ang training knowledge nito sa language. Ang pag-set ng register ay magbibigay sa inyo ng control sa tone, formality, at mga orthographic convention. Tingnan ang Configuration para sa mga detalye.


Mga Language Card

Ang bawat built-in na language ay may Language Card — structured JSON configuration na naka-split sa dalawang tier para sa performance:

Two-Tier Architecture

TierDirectoryNa-loadPurpose
Runtimelib/data/language-cards/Eagerly sa importTranslation engine: mga register, formality, mga rule, method support
Referencelib/data/language-reference/Lazily on demandDeveloper docs: mga linguistic challenge, encyclopedic data, mga NLP resource

Nananatiling maliit ang runtime tier (~2 KB/card) kaya hindi naglo-load ng megabytes ng documentation data kapag nag-import ng rosetta. Available ang reference tier via getLanguageReference(code) para sa mga tool, sa website, at sa eval harness.

Mga Runtime Card Field

FieldNilalaman Nito
nativeNameEndonym — ang pangalan ng language para sa sarili nito, sa sarili nitong script (hal., ქართული, Runasimi)
Formality systemT-V distinction, speech levels, keigo, mga particle, atbp.
Register presetsMga named LLM prompt preset na specific sa character ng language
Method supportKung aling mga translation API ang nagsu-support sa language na ito
Gender guidanceMga grammatical gender rule at inclusive writing tip
Script/directionISO 15924 script code at RTL/LTR
RulesTypography (mga quote, spacing), capitalization, mga plural category
Eval datasetsKung aling mga benchmark ang nagco-cover sa language na ito
glottocodeCanonical Glottolog identifier para sa cross-referencing
humanReviewedKung na-review na ang card ng isang speaker

Mga Reference Card Field

FieldNilalaman Nito
Linguistic challengesMga MT-specific pitfall (hal., evidentiality, tonal diacritics, agglutination)
EncyclopedicLanguage family, classification, speaker count, mga region
ResourcesMga NLP tool, parallel corpora, mga pre-trained model

Pag-scaffold ng Bagong Language Card

Gamitin ang generator para i-scaffold ang parehong tier mula sa mga authoritative data source (IANA, CLDR, Glottolog):

# Preview what would be generated
node scripts/generate-language-card.mjs sw --dry-run

# Generate both runtime + reference cards
node scripts/generate-language-card.mjs sw

Ina-auto-populate ng generator ang metadata (mga code, script, direction, mga plural, mga quote, method support, language family) at minamarkahan ang mga linguistic judgment field bilang TODO para sa human curation.

Paggamit ng mga Preset Key

Imbes na isulat ang buong register text, pwede po kayong gumamit ng preset key name:

{
"languages": {
"fr": "casual-tu",
"ko": "formal-hapsyo",
"ja": "polite"
}
}

Nire-resolve ng Rosetta ang key papunta sa buong register prompt. I-run ang npx i18n-rosetta init para makita ang mga available na preset para sa bawat language.

Mga Example Preset

LanguageMga PresetDefault
Frenchformal-vous, casual-tuformal-vous
Koreanpolite-haeyo, formal-hapsyo, casual-haepolite-haeyo
Japanesepolite, formal-keigo, casualpolite
Germanformal-Sie, casual-duformal-Sie
Thaineutral-professional, polite-male, polite-femaleneutral-professional
Spanishneutral-professional, formal-usted, casual-tuteoneutral-professional

Tingnan ang Pag-contribute ng Language Card para sa buong spec, kasama na ang field validation at PR checklist.


Tingnan Din