diff --git a/src/assets/locale/ml/option.json b/src/assets/locale/ml/option.json index 7a3523b..f8fcf70 100644 --- a/src/assets/locale/ml/option.json +++ b/src/assets/locale/ml/option.json @@ -2,7 +2,7 @@ "newChat": "പുതിയ ചാറ്റ്", "selectAPrompt": "ഒരു പ്രോംപ്റ്റ് തിരഞ്ഞെടുക്കുക", "githubRepository": "ഗിറ്റ്ഹബ് റെപ്പോസിറ്ററി", - "settings": "ക്രമീകരണങ്ങള്‍", + "settings": "സെറ്റിംഗുകൾ", "sidebarTitle": "ചാറ്റ് ചരിത്രം", "error": "പിശക്", "somethingWentWrong": "എന്തോ തെറ്റായി", diff --git a/src/assets/locale/ml/playground.json b/src/assets/locale/ml/playground.json index 691618b..7334837 100644 --- a/src/assets/locale/ml/playground.json +++ b/src/assets/locale/ml/playground.json @@ -6,7 +6,7 @@ }, "formError": { "noModel": "ദയവായി ഒരു മോഡല്‍ തിരഞ്ഞെടുക്കുക", - "noEmbeddingModel": "ക്രമീകരണങ്ങള്‍ > ഒല്ലാമ പേജിലുള്ള എംബെഡിംഗ് മോഡല്‍ സജ്ജീകരിക്കുക" + "noEmbeddingModel": "സെറ്റിംഗുകൾ > ഒല്ലാമ പേജിലുള്ള എംബെഡിംഗ് മോഡല്‍ സജ്ജീകരിക്കുക" }, "form": { "textarea": { diff --git a/src/assets/locale/ml/settings.json b/src/assets/locale/ml/settings.json index 94f06af..d896f45 100644 --- a/src/assets/locale/ml/settings.json +++ b/src/assets/locale/ml/settings.json @@ -1,7 +1,7 @@ { "generalSettings": { - "title": "പൊതുവായ ക്രമീകരണങ്ങള്‍", - "heading": "വെബ് UI ക്രമീകരണങ്ങള്‍", + "title": "പൊതുവായ സെറ്റിംഗുകൾ", + "heading": "വെബ് UI സെറ്റിംഗുകൾ", "settings": { "speechRecognitionLang": { "label": "സംഭാഷണ തിരിച്ചറിയല്‍ ഭാഷ", @@ -160,15 +160,15 @@ } }, "ollamaSettings": { - "title": "ഒല്ലാമാ ക്രമീകരണങ്ങള്‍", - "heading": "ഒല്ലാമാ കോൺഫിഗർ ചെയ്യുക", + "title": "Ollama സെറ്റിംഗുകൾ", + "heading": "Ollama കോൺഫിഗർ ചെയ്യുക", "settings": { "ollamaUrl": { - "label": "ഒല്ലാമാ URL", - "placeholder": "ഒല്ലാമാ URL നല്കുക" + "label": "Ollama URL", + "placeholder": "Ollama URL നല്കുക" }, "ragSettings": { - "label": "RAG ക്രമീകരണങ്ങള്‍", + "label": "RAG സെറ്റിംഗുകൾ", "model": { "label": "എംബെഡിംഗ് മോഡല്‍", "required": "ദയവായി ഒരു മോഡല്‍ തിരഞ്ഞെടുക്കുക", diff --git a/src/hooks/useI18n.tsx b/src/hooks/useI18n.tsx index 0077e22..51ad6e1 100644 --- a/src/hooks/useI18n.tsx +++ b/src/hooks/useI18n.tsx @@ -11,6 +11,7 @@ export const useI18n = () => { const changeLocale = (lang: string) => { setLocale(lang) i18n.changeLanguage(lang) + localStorage.setItem("i18nextLng", lang) } return { locale, changeLocale, supportLanguage } diff --git a/src/i18n/index.ts b/src/i18n/index.ts index b808e1e..e85b63b 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -10,6 +10,7 @@ i18n resources: { en: en, ml: ml, + "zh-CN": zh, zh: zh }, fallbackLng: "en", diff --git a/src/i18n/support-language.ts b/src/i18n/support-language.ts index 3ab08e4..04c1867 100644 --- a/src/i18n/support-language.ts +++ b/src/i18n/support-language.ts @@ -7,9 +7,9 @@ export const supportLanguage = [ { label: "മലയാളം", value: "ml" - } + }, { - label: "Chinese", - value: "zh" + label: "简体中文", + value: "zh-CN" } ] \ No newline at end of file diff --git a/wxt.config.ts b/wxt.config.ts index 14c7ab9..05526d4 100644 --- a/wxt.config.ts +++ b/wxt.config.ts @@ -24,7 +24,7 @@ export default defineConfig({ srcDir: "src", outDir: "build", manifest: { - version: "1.1.0", + version: "1.1.1", name: '__MSG_extName__', description: '__MSG_extDescription__', default_locale: 'en',