diff --git a/.editorconfig b/.editorconfig
index 4f5fc50..0b01722 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -4,7 +4,7 @@ root = true
[*]
charset = utf-8
indent_style = space
-indent_size = 4
+indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
diff --git a/.vscode/settings.json b/.vscode/settings.json
index d59e66d..457ab0c 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -14,5 +14,12 @@
"i18n-ally.keystyle": "nested",
"i18n-ally.extract.autoDetect": true,
"i18n-ally.enabledFrameworks": ["vue"],
- "i18n-ally.enabledParsers": ["json"]
+ "i18n-ally.enabledParsers": ["json"],
+ "i18n-ally.translate.engines":[
+ "openai"
+ ],
+ // "i18n-ally.translate.openai.apiKey": "", 自己配置,防止泄露
+ "i18n-ally.translate.openai.apiModel": "Qwen/Qwen2.5-72B-Instruct",
+ "i18n-ally.translate.openai.apiRoot": "https://api.siliconflow.cn",
+ "i18n-ally.translate.overrideExisting": true
}
diff --git a/packages/locales/languages/en.json b/packages/locales/languages/en.json
index f5d95ce..ef816d8 100644
--- a/packages/locales/languages/en.json
+++ b/packages/locales/languages/en.json
@@ -1,78 +1,20 @@
{
- "title": "exeaasdaa33 {name} aaaa",
"update": {
- "status": {
- "IDLE": "check update",
- "InitCheckingUpdate": "init checking update",
- "CheckingUpdate": "start checking update",
- "Error": "checking update error",
- "Avaliable": "checked new update v{version}",
- "Notavaliable": "current version is newest. v{version}",
- "Downloading": "current download progress {percent}%",
- "Downloaded": "newest version download, click to install "
+ "ready": {
+ "hot": {
+ "desc": "The new version v{version} is ready for update and will be automatically updated the next time you launch the program.",
+ "title": "Prompt"
+ }
}
},
- "setting": {
- "tips": {
- "notSave": "not save"
- },
- "tabs": {
- "common": "common",
- "editor": "editor",
- "update": "update"
- },
- "log_path_btn": "open log path",
- "update": {
- "author": {
- "title": "author",
- "desc": "who's author",
- "placeholder": "please input author's name"
- },
- "repo": {
- "title": "repository",
- "desc": "Updated repository name",
- "placeholder": "please input repository's name"
- },
- "version": {
- "title": "Check Version",
- "desc": "Current Version:",
- "button": "Check Update"
- }
- },
- "editor": {
- "bg": {
- "title": "background",
- "desc": "change editor background",
- "placeholder": "please input picture link"
- },
- "font": {
- "title": "font",
- "desc": "change editor font",
- "placeholder": "please input font name"
- }
- },
- "language": {
- "title": "Language",
- "desc": "Switch Language",
- "options": {
- "zh": "Chinese",
- "en": "English"
- }
- },
- "storagePath": {
- "title": "Data Storage Path",
- "desc": "Local Data Storage Path",
- "buttons": {
- "select": "Select Path",
- "open": "Open Path"
+ "browser": {
+ "navbar": {
+ "menu": {
+ "fullscreen": "Full screen",
+ "quit-fullscreen": "Exit Full Screen",
+ "toggleDevTools": "Developer panel",
+ "label": "Menu"
}
}
- },
- "app-menu": {
- "about": "about"
- },
- "qie-huan-kai-fa-zhe-gong-ju": "ToggleDevtool",
- "qu-xiao-quan-ping": "Canel FullScreen",
- "quan-ping": "FullScreen",
- "caidan": "Menu"
+ }
}
diff --git a/packages/locales/languages/zh.json b/packages/locales/languages/zh.json
index b57fa33..a65e406 100644
--- a/packages/locales/languages/zh.json
+++ b/packages/locales/languages/zh.json
@@ -1,83 +1,20 @@
{
- "title": "aaaaaa2 {name} bbbb",
"update": {
"ready": {
"hot": {
"title": "提示",
"desc": "新版本 v{version} 已经准备好更新, 下次启动程序即可自动更新"
}
- },
- "status": {
- "IDLE": "检查更新",
- "InitCheckingUpdate": "初始化检查更新",
- "CheckingUpdate": "开始检查更新",
- "Error": "检查更新出错",
- "Avaliable": "检查到新版本 v{version}",
- "Notavaliable": "当前版本已经是最新 v{version}",
- "Downloading": "当前下载进度{percent}%",
- "Downloaded": "新版本下载完毕,点击安装"
}
},
- "setting": {
- "tips": {
- "notSave": "未保存"
- },
- "tabs": {
- "common": "通用",
- "editor": "编辑器",
- "update": "更新"
- },
- "log_path_btn": "打开日志目录",
- "update": {
- "author": {
- "title": "作者",
- "desc": "更新的仓库作者",
- "placeholder": "请输入作者"
- },
- "repo": {
- "title": "仓库",
- "desc": "更新的仓库",
- "placeholder": "请输入仓库"
- },
- "version": {
- "title": "检查更新",
- "desc": "当前版本:"
- }
- },
- "editor": {
- "bg": {
- "title": "背景",
- "desc": "改变编辑器背景",
- "placeholder": "请输入图片链接"
- },
- "font": {
- "title": "字体",
- "desc": "改变编辑器字体",
- "placeholder": "请输入字体"
- }
- },
- "language": {
- "title": "语言",
- "desc": "切换语言显示",
- "options": {
- "zh": "中文",
- "en": "英文"
- }
- },
- "storagePath": {
- "title": "数据保存路径",
- "desc": "本地数据保存地址",
- "buttons": {
- "select": "选择目录",
- "open": "打开目录"
+ "browser": {
+ "navbar": {
+ "menu": {
+ "label": "菜单",
+ "fullscreen": "全屏",
+ "quit-fullscreen": "取消全屏",
+ "toggleDevTools": "开发者面板"
}
}
- },
- "app-menu": {
- "about": "关于"
- },
- "qie-huan-kai-fa-zhe-gong-ju": "切换开发者工具",
- "qu-xiao-quan-ping": "取消全屏",
- "quan-ping": "全屏",
- "caidan": "菜单"
+ }
}
diff --git a/src/renderer/src/components/NavBar.vue b/src/renderer/src/components/NavBar.vue
index db0bc27..0775f7f 100644
--- a/src/renderer/src/components/NavBar.vue
+++ b/src/renderer/src/components/NavBar.vue
@@ -15,7 +15,7 @@