Skip to content

Commit

Permalink
update: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SaekiRaku committed Oct 22, 2024
1 parent d6654fe commit 0ec01d3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/i18n/i18n-util.sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const localeTranslations = {
ja,
'pt-br': pt_br,
tr,
zh_cn,
'zh-cn': zh_cn,
}

export const loadLocale = (locale: Locales): void => {
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/i18n-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const locales: Locales[] = [
'ja',
'pt-br',
'tr',
'zh-cn',
'zh-cn'
]

export const isLocale = (locale: string): locale is Locales => locales.includes(locale as Locales)
Expand Down
16 changes: 8 additions & 8 deletions src/i18n/zh-cn/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const zh_cn = {
availableModels: '可用模型',
browseModels: '浏览可用模型',
cancel: '取消',
cantConnectToOllamaServer: "无法连接到 Ollama 服务器",
cantConnectToOllamaServer: '无法连接到 Ollama 服务器',
checkBrowserExtensions: '请检查并确认浏览器扩展没有阻塞连接',
checkingForUpdates: '检查更新中...',
checkNow: '立刻检查',
Expand All @@ -25,8 +25,8 @@ const zh_cn = {
content: '内容',
controls: '控制器',
copy: '复制',
couldntCheckForUpdates: "无法自动检查更新",
couldntConnectToOllamaServer: "无法连接到 Ollama 服务器",
couldntCheckForUpdates: '无法自动检查更新',
couldntConnectToOllamaServer: '无法连接到 Ollama 服务器',
creatingTunnel: '正在创建隧道',
currentVersion: '当前版本',
dangerZone: '危险区域',
Expand Down Expand Up @@ -60,16 +60,16 @@ const zh_cn = {
lastUsedModels: '最近使用的模型',
light: '浅色',
// lowVram: '低 VRAM', 个人倾向于技术名词不做翻译,下方注释同理
mainGpu: '主要 GPU',
messageOfTheDay: '今日消息',
// mainGpu: '主要 GPU',
messageOfTheDay: '资讯',
messages: '消息',
// minP: 'Min P',
// mirostat: 'Mirostat',
// mirostatEta: 'Mirostat ETA',
// mirostatTau: 'Mirostat Tau',
modelOptions: '模型设置',
modelWasDownloaded: '{model:string} 已下载',
motd: '今日消息',
motd: '资讯', // 此处未直译 Message of the day,是为了确保左侧菜单字数一致不突兀。
name: '名称',
newKnowledge: '新建知识',
newSession: '新建会话',
Expand All @@ -84,7 +84,7 @@ const zh_cn = {
// numPredict: 'Num predict',
// numThread: 'Number of threads',
// numa: 'NUMA',
ollamaLibrary: "Ollama 库",
ollamaLibrary: 'Ollama 库',
otherModels: '其他模型',
// penalizeNewline: 'Penalize newline',
// presencePenalty: 'Presence penalty',
Expand All @@ -104,7 +104,7 @@ const zh_cn = {
save: '保存',
search: '搜索',
searchEmpty: '无结果',
seed: '种子',
// seed: '种子',
seeDocs: '查看文档',
server: '服务器',
session: '会话',
Expand Down
2 changes: 1 addition & 1 deletion src/routes/settings/Interface.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{ value: 'es', label: 'Español' },
{ value: 'ja', label: '日本語' },
{ value: 'tr', label: 'Türkçe' },
{ value: 'pt-br', label: 'Português (Brasil)' }
{ value: 'pt-br', label: 'Português (Brasil)' },
{ value: 'zh-cn', label: '中文 (简体)' }
]}
/>
Expand Down

0 comments on commit 0ec01d3

Please sign in to comment.