Skip to content

Commit 23657df

Browse files
committed
fix setting eport
1 parent 288ca77 commit 23657df

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

doc/description.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Mouseover Translate Any Language At Once
1919
English, Russian, Japanese, Chinese and so on
2020

2121
# Change Log
22+
- 0.1.204
23+
- fix setting export
2224
- 0.1.203
2325
- Russian localization (contributed by D0n-A)
2426
- fix tooltip site conflict with tippy (requested by l-Nuril-l)

src/util/setting_default.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import TextUtil from "/src/util/text_util.js";
22
import { langList, ocrLangList, listenLangList } from "/src/util/lang.js";
33
import _util from "/src/util/lodash_util.js";
4+
var browser;
5+
try {
6+
browser = require("webextension-polyfill");
7+
} catch (error) {}
48

59
var langListWithAuto = TextUtil.concatJson({ Auto: "auto" }, langList); //copy lang and add auto
610
var langListWithNone = TextUtil.concatJson({ None: "null" }, langList); //copy lang and add none
@@ -128,12 +132,6 @@ var voiceRateListWithDefault = TextUtil.concatJson(defaultDict, voiceRateList);
128132
export var settingDict = {
129133
// main
130134

131-
translateWhen: {
132-
default: "mouseoverselect",
133-
i18nKey: "Translate_When",
134-
optionList: translateActionList,
135-
settingTab: "main",
136-
},
137135
translateSource: {
138136
default: "auto",
139137
i18nKey: "Translate_From",
@@ -152,6 +150,12 @@ export var settingDict = {
152150
optionList: translatorList,
153151
settingTab: "main",
154152
},
153+
translateWhen: {
154+
default: "mouseoverselect",
155+
i18nKey: "Translate_When",
156+
optionList: translateActionList,
157+
settingTab: "main",
158+
},
155159
mouseoverTextType: {
156160
default: "sentence",
157161
i18nKey: "Mouseover_Text_Type",

0 commit comments

Comments
 (0)