disable language dropdown until i18n fully integrated (#1489)

This commit is contained in:
brownrw8 2025-01-27 09:50:44 -10:00 committed by GitHub
parent 56a7b53ed9
commit cb1fd31e36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 11 deletions

View file

@ -5,7 +5,7 @@ import { useExtensionState } from "../../context/ExtensionStateContext"
import { validateApiConfiguration, validateModelId } from "../../utils/validate"
import { vscode } from "../../utils/vscode"
import ApiOptions from "./ApiOptions"
import LanguageOptions from "./LanguageOptions"
//import LanguageOptions from "./LanguageOptions"
import SettingsButton from "../common/SettingsButton"
const IS_DEV = false // FIXME: use flags when packaging
@ -117,9 +117,9 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
{t("customInstructionsDescription")}
</p>
</div>
<div style={{ marginBottom: 5 }}>
{/*<div style={{ marginBottom: 5 }}>
<LanguageOptions />
</div>
</div>*/}
{IS_DEV && (
<>

View file

@ -2,10 +2,10 @@ import i18n from "i18next"
import { initReactI18next } from "react-i18next"
import translationEN from "./locales/en/translation.json"
import translationDE from "./locales/de/translation.json"
import translationZHCN from "./locales/zh-cn/translation.json"
import translationZHTW from "./locales/zh-tw/translation.json"
import translationJA from "./locales/ja/translation.json"
//import translationDE from "./locales/de/translation.json"
//import translationZHCN from "./locales/zh-cn/translation.json"
//import translationZHTW from "./locales/zh-tw/translation.json"
//import translationJA from "./locales/ja/translation.json"
i18n.use(initReactI18next) // passes i18n down to react-i18next
.init({
@ -18,10 +18,10 @@ i18n.use(initReactI18next) // passes i18n down to react-i18next
},
})
i18n.addResourceBundle("de", "translation", translationDE)
i18n.addResourceBundle("en", "translation", translationEN)
i18n.addResourceBundle("zh-CN", "translation", translationZHCN)
i18n.addResourceBundle("zh-TW", "translation", translationZHTW)
i18n.addResourceBundle("ja", "translation", translationJA)
//i18n.addResourceBundle("de", "translation", translationDE)
//i18n.addResourceBundle("zh-CN", "translation", translationZHCN)
//i18n.addResourceBundle("zh-TW", "translation", translationZHTW)
//i18n.addResourceBundle("ja", "translation", translationJA)
export default i18n