/
githubmirror
/
oppia
Обзор
Документация
Войти
/
githubmirror
/
oppia
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
assets/auto_trans_provider_mapping.json
93 строки
3 KB
AmiyaPiyush1
[2.1_2026_M1_PR1] Provider name mapping and feature gating for Automatic Translation (#26161)
15 июн 2026, 22:55
Не верифицирован
15 июн 2026, 22:55
f31770f
Код
Авторство
О чём код?
/** AUTO TRANSLATION PROVIDER MAPPING This file is the developer-controlled whitelist that defines which translation providers technically support which language codes. It controls what the system is CAPABLE of translating not what is actively enabled at runtime. Runtime enablement is managed separately via MachineTranslationPolicyModel in the translation admin UI. CRITERIA FOR ADDING A LANGUAGE: 1. The language must be supported by the listed provider. Verify against the provider's official supported languages docs: - Azure: https://learn.microsoft.com/en-us/azure/ai-services/translator/language-support - GCP: https://cloud.google.com/translate/docs/languages For any new provider, link its equivalent page here. 2. There must be an active contributor base for that language on Oppia's Contributor Dashboard. 3. A PR must be raised to add the entry changes do not take effect until merged and deployed. CRITERIA FOR REMOVING A LANGUAGE: 1. All listed providers have deprecated support for the language, OR 2. The language is being moved to a different provider entirely. FORMAT: "<iso-639-1-code>": ["<provider_id_1>", "<provider_id_2>"] Multiple providers per language are supported the active provider is selected at runtime via MachineTranslationPolicyModel. ADDING A NEW PROVIDER: 1. Add the provider's supported languages to this file. 2. Link its supported languages doc above in this comment. MAINTENANCE: When any provider updates its supported languages, verify against the links above and raise a PR to keep this file in sync. */ { "am" : ["azure"], // Amharic "ar" : ["azure"], // Arabic "az" : ["azure"], // Azerbaijani "bg" : ["azure"], // Bulgarian "bn" : ["azure"], // Bangla "ca" : ["azure"], // Catalan "cs" : ["azure"], // Czech "da" : ["azure"], // Danish "de" : ["azure"], // German "el" : ["azure"], // Greek "en" : ["azure"], // English "es" : ["azure"], // Spanish "fa" : ["azure"], // Persian "fi" : ["azure"], // Finnish "fr" : ["azure"], // French "ha" : ["azure"], // Hausa "he" : ["azure"], // Hebrew "hi" : ["azure"], // Hindi "hr" : ["azure"], // Croatian "hu" : ["azure"], // Hungarian "id" : ["azure"], // Indonesian "ig" : ["azure"], // Igbo "it" : ["azure"], // Italian "ja" : ["azure"], // Japanese "ko" : ["azure"], // Korean "lt" : ["azure"], // Lithuanian "lv" : ["azure"], // Latvian "mr" : ["azure"], // Marathi "ms" : ["azure"], // Bahasa Melayu "nl" : ["azure"], // Dutch "no" : ["azure"], // Norwegian "pl" : ["azure"], // Polish "prs" : ["azure"], // Dari "ps" : ["azure"], // Pashto "pt" : ["azure"], // Portuguese "ro" : ["azure"], // Romanian "ru" : ["azure"], // Russian "sk" : ["azure"], // Slovak "sl" : ["azure"], // Slovenian "sq" : ["azure"], // Albanian "sr" : ["azure"], // Serbian "sv" : ["azure"], // Swedish "sw" : ["azure"], // Swahili "ta" : ["azure"], // Tamil "te" : ["azure"], // Telugu "th" : ["azure"], // Thai "tl" : ["azure"], // Filipino "tr" : ["azure"], // Turkish "uk" : ["azure"], // Ukrainian "ur" : ["azure"], // Urdu "vi" : ["azure"], // Vietnamese "yo" : ["azure"], // Yoruba "zh" : ["azure"] // Chinese }