Skip to content

Commit daa7113

Browse files
committed
Update list of config laguages and fix cheker
1 parent b33db56 commit daa7113

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "To DeepL",
4-
"version": "0.4.0",
4+
"version": "0.4.1",
55
"description": "Translate selected text in new tab with DeepL",
66
"homepage_url": "https://github.com/rewkha/firefox-to-deepl",
77
"icons": {

src/options/options.html

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
<option value="sl">Slovenski (Slovenian)</option>
4141
<option value="sv">Svenska</option>
4242
<option value="zh">简体中文 (simplified Chinese)</option>
43-
4443
</select>
4544
</label>
4645
</div>

src/options/options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function renderOptions() {
77

88
document.getElementById('defaultLang').addEventListener('click', (e) => {
99
console.log(e.target.value);
10-
if (['en', 'de', 'fr', 'es', 'ja', 'pt-PT', 'pt-BR', 'it', 'nl', 'pl', 'ru', 'zh'].indexOf(e.target.value) !== -1) {
10+
if (['en', 'bg', 'da', 'de', 'es', 'et', 'el', 'fr', 'fi', 'hu', 'it', 'ja', 'lv,lt', 'lt', 'nl', 'pl', 'pt-PT', 'pt-BR', 'ro', 'ru', 'sk', 'sl', 'sv', 'zh'].indexOf(e.target.value) !== -1) {
1111
browser.storage.local.set({
1212
settings: {
1313
defaultLang: e.target.value

0 commit comments

Comments
 (0)