Merge pull request #25 from n4ze3m/next

Next
This commit is contained in:
Muhammed Nazeem 2024-03-27 20:23:52 +05:30 committed by GitHub
commit f7b7bb0fef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 26 additions and 13 deletions

View File

@ -2,7 +2,7 @@
"newChat": "പുതിയ ചാറ്റ്", "newChat": "പുതിയ ചാറ്റ്",
"selectAPrompt": "ഒരു പ്രോംപ്റ്റ് തിരഞ്ഞെടുക്കുക", "selectAPrompt": "ഒരു പ്രോംപ്റ്റ് തിരഞ്ഞെടുക്കുക",
"githubRepository": "ഗിറ്റ്ഹബ് റെപ്പോസിറ്ററി", "githubRepository": "ഗിറ്റ്ഹബ് റെപ്പോസിറ്ററി",
"settings": "ക്രമീകരണങ്ങള്‍", "settings": "സെറ്റിംഗുകൾ",
"sidebarTitle": "ചാറ്റ് ചരിത്രം", "sidebarTitle": "ചാറ്റ് ചരിത്രം",
"error": "പിശക്", "error": "പിശക്",
"somethingWentWrong": "എന്തോ തെറ്റായി", "somethingWentWrong": "എന്തോ തെറ്റായി",

View File

@ -6,7 +6,7 @@
}, },
"formError": { "formError": {
"noModel": "ദയവായി ഒരു മോഡല്‍ തിരഞ്ഞെടുക്കുക", "noModel": "ദയവായി ഒരു മോഡല്‍ തിരഞ്ഞെടുക്കുക",
"noEmbeddingModel": "ക്രമീകരണങ്ങള്‍ > ഒല്ലാമ പേജിലുള്ള എംബെഡിംഗ് മോഡല്‍ സജ്ജീകരിക്കുക" "noEmbeddingModel": "സെറ്റിംഗുകൾ > ഒല്ലാമ പേജിലുള്ള എംബെഡിംഗ് മോഡല്‍ സജ്ജീകരിക്കുക"
}, },
"form": { "form": {
"textarea": { "textarea": {

View File

@ -1,7 +1,7 @@
{ {
"generalSettings": { "generalSettings": {
"title": "പൊതുവായ ക്രമീകരണങ്ങള്‍", "title": "പൊതുവായ സെറ്റിംഗുകൾ",
"heading": "വെബ് UI ക്രമീകരണങ്ങള്‍", "heading": "വെബ് UI സെറ്റിംഗുകൾ",
"settings": { "settings": {
"speechRecognitionLang": { "speechRecognitionLang": {
"label": "സംഭാഷണ തിരിച്ചറിയല്‍ ഭാഷ", "label": "സംഭാഷണ തിരിച്ചറിയല്‍ ഭാഷ",
@ -160,15 +160,15 @@
} }
}, },
"ollamaSettings": { "ollamaSettings": {
"title": "ഒല്ലാമാ ക്രമീകരണങ്ങള്‍", "title": "Ollama സെറ്റിംഗുകൾ",
"heading": "ഒല്ലാമാ കോൺഫിഗർ ചെയ്യുക", "heading": "Ollama കോൺഫിഗർ ചെയ്യുക",
"settings": { "settings": {
"ollamaUrl": { "ollamaUrl": {
"label": "ഒല്ലാമാ URL", "label": "Ollama URL",
"placeholder": "ഒല്ലാമാ URL നല്കുക" "placeholder": "Ollama URL നല്കുക"
}, },
"ragSettings": { "ragSettings": {
"label": "RAG ക്രമീകരണങ്ങള്‍", "label": "RAG സെറ്റിംഗുകൾ",
"model": { "model": {
"label": "എംബെഡിംഗ് മോഡല്‍", "label": "എംബെഡിംഗ് മോഡല്‍",
"required": "ദയവായി ഒരു മോഡല്‍ തിരഞ്ഞെടുക്കുക", "required": "ദയവായി ഒരു മോഡല്‍ തിരഞ്ഞെടുക്കുക",

View File

@ -11,6 +11,7 @@ export const useI18n = () => {
const changeLocale = (lang: string) => { const changeLocale = (lang: string) => {
setLocale(lang) setLocale(lang)
i18n.changeLanguage(lang) i18n.changeLanguage(lang)
localStorage.setItem("i18nextLng", lang)
} }
return { locale, changeLocale, supportLanguage } return { locale, changeLocale, supportLanguage }

View File

@ -10,6 +10,7 @@ i18n
resources: { resources: {
en: en, en: en,
ml: ml, ml: ml,
"zh-CN": zh,
zh: zh zh: zh
}, },
fallbackLng: "en", fallbackLng: "en",

View File

@ -7,9 +7,9 @@ export const supportLanguage = [
{ {
label: "മലയാളം", label: "മലയാളം",
value: "ml" value: "ml"
} },
{ {
label: "Chinese", label: "简体中文",
value: "zh" value: "zh-CN"
} }
] ]

View File

@ -0,0 +1,11 @@
{
"extName": {
"message": "Page Assist - 本地 AI 模型的 Web UI"
},
"extDescription": {
"message": "使用本地运行的 AI 模型来辅助您的网络浏览。"
},
"openSidePanelToChat": {
"message": "打开侧边栏进行聊天"
}
}

View File

@ -24,7 +24,7 @@ export default defineConfig({
srcDir: "src", srcDir: "src",
outDir: "build", outDir: "build",
manifest: { manifest: {
version: "1.1.0", version: "1.1.1",
name: '__MSG_extName__', name: '__MSG_extName__',
description: '__MSG_extDescription__', description: '__MSG_extDescription__',
default_locale: 'en', default_locale: 'en',