userscript...

This commit is contained in:
Gabe Yuan
2023-08-05 15:32:51 +08:00
parent bec207a09f
commit 1e82c280ad
11 changed files with 323 additions and 202 deletions

View File

@@ -1,5 +1,3 @@
const URL_APP_HOMEPAGE = "https://github.com/fishjar/kiss-translator";
export const UI_LANGS = [
["zh", "中文"],
["en", "English"],
@@ -35,8 +33,8 @@ export const I18N = {
en: `README.en.md`,
},
about_md_local: {
zh: `请 [点击这里](${URL_APP_HOMEPAGE}) 查看详情。`,
en: `Please [click here](${URL_APP_HOMEPAGE}) for details.`,
zh: `请 [点击这里](${process.env.REACT_APP_HOMEPAGE}) 查看详情。`,
en: `Please [click here](${process.env.REACT_APP_HOMEPAGE}) for details.`,
},
ui_lang: {
zh: `界面语言`,

View File

@@ -129,7 +129,7 @@ export const DEFAULT_RULE = {
fromLang: "auto",
toLang: "zh-CN",
textStyle: OPT_STYLE_DASHLINE,
transOpen: true,
transOpen: false,
};
export const DEFAULT_SETTING = {