diff --git a/src/_locales/options/messages.json b/src/_locales/options/messages.json index 8da0e0d50..58c88f3e0 100644 --- a/src/_locales/options/messages.json +++ b/src/_locales/options/messages.json @@ -124,6 +124,21 @@ "zh_CN": "查词面板最高占屏幕比例", "zh_TW": "查字典介面最高占螢幕高度比例" }, + "dict_panel_lang_en": { + "en": "En", + "zh_CN": "英", + "zh_TW": "英" + }, + "dict_panel_lang_zhs": { + "en": "Zhs", + "zh_CN": "简", + "zh_TW": "简" + }, + "dict_panel_lang_zht": { + "en": "Zht", + "zh_CN": "繁", + "zh_TW": "繁" + }, "dict_panel_title": { "en": "Dict Panel", "zh_CN": "查词面板", @@ -164,6 +179,16 @@ "zh_CN": "词典设置", "zh_TW": "字典設定" }, + "export": { + "en": "Reset", + "zh_CN": "导出设定", + "zh_TW": "匯出設定" + }, + "import": { + "en": "Import", + "zh_CN": "导入设定", + "zh_TW": "匯入設定" + }, "instructions": { "en": "Instructions", "zh_CN": "使用说明", @@ -319,16 +344,6 @@ "zh_CN": "重置设定", "zh_TW": "重置設定" }, - "import": { - "en": "Import", - "zh_CN": "导入设定", - "zh_TW": "匯入設定" - }, - "export": { - "en": "Reset", - "zh_CN": "导出设定", - "zh_TW": "匯出設定" - }, "reset_modal_content": { "en": "Reset to default settings. Confirm?", "zh_CN": "所有设定将还原到默认值,确定?", diff --git a/src/app-config/dicts.ts b/src/app-config/dicts.ts index 249a635f6..d9fa50aeb 100644 --- a/src/app-config/dicts.ts +++ b/src/app-config/dicts.ts @@ -3,6 +3,11 @@ import { DeepReadonly } from '@/typings/helpers' export function getALlDicts () { const allDicts = { bing: { + /** + * Supported language: en, zh-CN, zh-TW + * `1` for supported + */ + lang: '110', /** * Full content page to jump to when user clicks the title. * %s will be replaced with the current word. @@ -38,6 +43,11 @@ export function getALlDicts () { } }, cambridge: { + /** + * Supported language: en, zh-CN, zh-TW + * `1` for supported + */ + lang: '111', /** * Full content page to jump to when user clicks the title. * %s will be replaced with the current word. @@ -69,6 +79,11 @@ export function getALlDicts () { }, }, cobuild: { + /** + * Supported language: en, zh-CN, zh-TW + * `1` for supported + */ + lang: '100', /** * Full content page to jump to when user clicks the title. * %s will be replaced with the current word. @@ -100,6 +115,11 @@ export function getALlDicts () { } }, etymonline: { + /** + * Supported language: en, zh-CN, zh-TW + * `1` for supported + */ + lang: '100', /** * Full content page to jump to when user clicks the title. * %s will be replaced with the current word. @@ -131,6 +151,11 @@ export function getALlDicts () { } }, eudic: { + /** + * Supported language: en, zh-CN, zh-TW + * `1` for supported + */ + lang: '110', /** * Full content page to jump to when user clicks the title. * %s will be replaced with the current word. @@ -162,6 +187,11 @@ export function getALlDicts () { } }, google: { + /** + * Supported language: en, zh-CN, zh-TW + * `1` for supported + */ + lang: '111', /** * Full content page to jump to when user clicks the title. * %s will be replaced with the current word. @@ -189,6 +219,11 @@ export function getALlDicts () { } }, guoyu: { + /** + * Supported language: en, zh-CN, zh-TW + * `1` for supported + */ + lang: '001', /** * Full content page to jump to when user clicks the title. * %s will be replaced with the current word. @@ -216,6 +251,11 @@ export function getALlDicts () { } }, liangan: { + /** + * Supported language: en, zh-CN, zh-TW + * `1` for supported + */ + lang: '001', /** * Full content page to jump to when user clicks the title. * %s will be replaced with the current word. @@ -243,6 +283,11 @@ export function getALlDicts () { } }, longman: { + /** + * Supported language: en, zh-CN, zh-TW + * `1` for supported + */ + lang: '100', /** * Full content page to jump to when user clicks the title. * %s will be replaced with the current word. @@ -280,6 +325,11 @@ export function getALlDicts () { } }, macmillan: { + /** + * Supported language: en, zh-CN, zh-TW + * `1` for supported + */ + lang: '100', /** * Full content page to jump to when user clicks the title. * %s will be replaced with the current word. @@ -311,6 +361,11 @@ export function getALlDicts () { } }, oald: { + /** + * Supported language: en, zh-CN, zh-TW + * `1` for supported + */ + lang: '100', /** * Full content page to jump to when user clicks the title. * %s will be replaced with the current word. @@ -342,6 +397,11 @@ export function getALlDicts () { }, }, urban: { + /** + * Supported language: en, zh-CN, zh-TW + * `1` for supported + */ + lang: '100', /** * Full content page to jump to when user clicks the title. * %s will be replaced with the current word. @@ -373,6 +433,11 @@ export function getALlDicts () { } }, vocabulary: { + /** + * Supported language: en, zh-CN, zh-TW + * `1` for supported + */ + lang: '100', /** * Full content page to jump to when user clicks the title. * %s will be replaced with the current word. @@ -400,6 +465,11 @@ export function getALlDicts () { } }, websterlearner: { + /** + * Supported language: en, zh-CN, zh-TW + * `1` for supported + */ + lang: '100', /** * Full content page to jump to when user clicks the title. * %s will be replaced with the current word. @@ -435,6 +505,11 @@ export function getALlDicts () { }, }, youdao: { + /** + * Supported language: en, zh-CN, zh-TW + * `1` for supported + */ + lang: '110', /** * Full content page to jump to when user clicks the title. * %s will be replaced with the current word. @@ -471,6 +546,11 @@ export function getALlDicts () { } }, zdic: { + /** + * Supported language: en, zh-CN, zh-TW + * `1` for supported + */ + lang: '010', /** * Full content page to jump to when user clicks the title. * %s will be replaced with the current word. diff --git a/src/options/OptDicts.vue b/src/options/OptDicts.vue index 803bcfe55..cbae8e52f 100644 --- a/src/options/OptDicts.vue +++ b/src/options/OptDicts.vue @@ -26,6 +26,9 @@
{{ $t('dict:' + id) }} + {{ $t('opt:dict_panel_lang_en') }} + {{ $t('opt:dict_panel_lang_zhs') }} + {{ $t('opt:dict_panel_lang_zht') }}
@@ -47,6 +50,9 @@
{{ $t('dict:' + id) }} + {{ $t('opt:dict_panel_lang_en') }} + {{ $t('opt:dict_panel_lang_zhs') }} + {{ $t('opt:dict_panel_lang_zht') }}
@@ -73,20 +79,16 @@
- - +
+
diff --git a/src/options/Options.vue b/src/options/Options.vue index 1ea2221f2..66d392f78 100644 --- a/src/options/Options.vue +++ b/src/options/Options.vue @@ -466,8 +466,11 @@ kbd { cursor: move; } -.panel-list__header { - cursor: move; +.panel-list__title-lang { + margin-left: 5px; + padding: 0 2px; + border: 1px solid #333; + border-radius: 2px; } .panel-list__icon {