mirror of
https://ghfast.top/https://github.com/discourse/discourse-translator.git
synced 2026-07-16 11:46:33 +08:00
111 lines
2.6 KiB
YAML
111 lines
2.6 KiB
YAML
discourse_translator:
|
|
translator_enabled:
|
|
default: false
|
|
client: true
|
|
translator:
|
|
default: 'Microsoft'
|
|
client: true
|
|
type: enum
|
|
choices:
|
|
- DiscourseAi
|
|
- Microsoft
|
|
- Google
|
|
- Amazon
|
|
- Yandex
|
|
- LibreTranslate
|
|
validator: "DiscourseTranslator::TranslatorSelectionValidator"
|
|
translator_azure_subscription_key:
|
|
default: ''
|
|
translator_azure_region:
|
|
default: 'global'
|
|
client: true
|
|
type: enum
|
|
choices: # Valid choices retrieved from https://docs.microsoft.com/en-us/azure/cognitive-services/translator/reference/v3-0-reference#authenticating-with-a-multi-service-resource
|
|
- global
|
|
- australiaeast
|
|
- brazilsouth
|
|
- canadacentral
|
|
- centralindia
|
|
- centralus
|
|
- centraluseuap
|
|
- eastasia
|
|
- eastus
|
|
- eastus2
|
|
- francecentral
|
|
- japaneast
|
|
- japanwest
|
|
- koreacentral
|
|
- northcentralus
|
|
- northeurope
|
|
- southafricanort
|
|
- southcentralus
|
|
- southeastasia
|
|
- uksouth
|
|
- westcentralus
|
|
- westeurope
|
|
- westus
|
|
- westus2
|
|
translator_azure_custom_subdomain:
|
|
default: ""
|
|
translator_aws_region:
|
|
default: 'us-east-1'
|
|
client: true
|
|
type: enum
|
|
choices: # Valid choices retrieved from https://docs.aws.amazon.com/general/latest/gr/rande.html#translate_region
|
|
- us-east-2
|
|
- us-east-1
|
|
- us-west-1
|
|
- us-west-2
|
|
- af-south-1
|
|
- ap-east-1
|
|
- ap-south-1
|
|
- ap-northeast-3
|
|
- ap-northeast-2
|
|
- ap-southeast-1
|
|
- ap-southeast-2
|
|
- ap-northeast-1
|
|
- ca-central-1
|
|
- cn-north-1
|
|
- cn-northwest-1
|
|
- eu-central-1
|
|
- eu-west-1
|
|
- eu-west-2
|
|
- eu-south-1
|
|
- eu-west-3
|
|
- eu-north-1
|
|
- me-south-1
|
|
- sa-east-1
|
|
translator_aws_key_id:
|
|
default: ''
|
|
translator_aws_secret_access:
|
|
default: ''
|
|
translator_aws_iam_role:
|
|
default: ''
|
|
translator_google_api_key:
|
|
default: ''
|
|
translator_yandex_api_key:
|
|
default: ''
|
|
translator_libretranslate_endpoint:
|
|
default: ''
|
|
translator_libretranslate_api_key:
|
|
default: ''
|
|
max_characters_per_translation:
|
|
default: 5000
|
|
client: true
|
|
max_translations_per_minute:
|
|
default: 3
|
|
restrict_translation_by_group:
|
|
default: "11" # default group trust_level_1
|
|
client: true
|
|
type: group_list
|
|
restrict_translation_by_poster_group:
|
|
default: ""
|
|
client: true
|
|
type: group_list
|
|
experimental_anon_language_switcher:
|
|
default: false
|
|
client: true
|
|
validator: "LanguageSwitcherSettingValidator"
|
|
experimental_topic_translation:
|
|
default: false
|
|
client: true
|