From 3812c1d3e6287dca7f0a0ed6236b07db9a33e9a7 Mon Sep 17 00:00:00 2001 From: Siddharth Singh Date: Fri, 27 Dec 2024 04:56:03 +0530 Subject: [PATCH] add language detection conf option --- src/config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config.ts b/src/config.ts index 68bf3ed8..73173a8c 100644 --- a/src/config.ts +++ b/src/config.ts @@ -303,6 +303,9 @@ class Conf { static get translationProvider(): string | undefined { return Deno.env.get('TRANSLATION_PROVIDER'); } + static get languageDetector(): string { + return Deno.env.get('DITTO_LANG_DETECTOR') || 'lande'; + } /** DeepL URL endpoint. */ static get deeplBaseUrl(): string | undefined { return Deno.env.get('DEEPL_BASE_URL');