From cb1fd31e3662ad436c51cd6d9bfabf188bd233bd Mon Sep 17 00:00:00 2001
From: brownrw8
Date: Mon, 27 Jan 2025 09:50:44 -1000
Subject: [PATCH] disable language dropdown until i18n fully integrated (#1489)
---
.../src/components/settings/SettingsView.tsx | 6 +++---
webview-ui/src/i18n.ts | 16 ++++++++--------
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/webview-ui/src/components/settings/SettingsView.tsx b/webview-ui/src/components/settings/SettingsView.tsx
index 16707bae3f..a5293bdc4e 100644
--- a/webview-ui/src/components/settings/SettingsView.tsx
+++ b/webview-ui/src/components/settings/SettingsView.tsx
@@ -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")}
- */}
{IS_DEV && (
<>
diff --git a/webview-ui/src/i18n.ts b/webview-ui/src/i18n.ts
index c16285d492..774dbb4fdc 100644
--- a/webview-ui/src/i18n.ts
+++ b/webview-ui/src/i18n.ts
@@ -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