mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
add language detection conf option
This commit is contained in:
parent
12e8eaf340
commit
3812c1d3e6
1 changed files with 3 additions and 0 deletions
|
|
@ -303,6 +303,9 @@ class Conf {
|
||||||
static get translationProvider(): string | undefined {
|
static get translationProvider(): string | undefined {
|
||||||
return Deno.env.get('TRANSLATION_PROVIDER');
|
return Deno.env.get('TRANSLATION_PROVIDER');
|
||||||
}
|
}
|
||||||
|
static get languageDetector(): string {
|
||||||
|
return Deno.env.get('DITTO_LANG_DETECTOR') || 'lande';
|
||||||
|
}
|
||||||
/** DeepL URL endpoint. */
|
/** DeepL URL endpoint. */
|
||||||
static get deeplBaseUrl(): string | undefined {
|
static get deeplBaseUrl(): string | undefined {
|
||||||
return Deno.env.get('DEEPL_BASE_URL');
|
return Deno.env.get('DEEPL_BASE_URL');
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue