Fix default target language

This commit is contained in:
sienori 2022-08-30 22:16:03 +09:00
parent 0bb452c88b
commit 33d18e4226

View file

@ -13,7 +13,7 @@ import {
const getDefaultLangs = () => {
const uiLang = browser.i18n.getUILanguage();
const langOptions = generateLangOptions();
const langOptions = generateLangOptions("google");
const shouldUseUiLang = langOptions.some(lang => lang.value == uiLang);
const targetLang = shouldUseUiLang ? uiLang : "en";