add language detection conf option

This commit is contained in:
Siddharth Singh 2024-12-27 04:56:03 +05:30
parent 12e8eaf340
commit 3812c1d3e6
No known key found for this signature in database

View file

@ -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');