Fix manifest not loading in Chrome
This commit is contained in:
parent
719c9e6ff6
commit
9de20bdd28
|
@ -482,10 +482,10 @@
|
||||||
"lang_ny": {
|
"lang_ny": {
|
||||||
"message": "Chewa"
|
"message": "Chewa"
|
||||||
},
|
},
|
||||||
"lang_zh-CN": {
|
"lang_zh_CN": {
|
||||||
"message": "Chinese (Simplified)"
|
"message": "Chinese (Simplified)"
|
||||||
},
|
},
|
||||||
"lang_zh-TW": {
|
"lang_zh_TW": {
|
||||||
"message": "Chinese (Traditional)"
|
"message": "Chinese (Traditional)"
|
||||||
},
|
},
|
||||||
"lang_co": {
|
"lang_co": {
|
||||||
|
@ -767,16 +767,16 @@
|
||||||
"lang_zu": {
|
"lang_zu": {
|
||||||
"message": "Zulu"
|
"message": "Zulu"
|
||||||
},
|
},
|
||||||
"lang_en-US": {
|
"lang_en_US": {
|
||||||
"message": "English (American)"
|
"message": "English (American)"
|
||||||
},
|
},
|
||||||
"lang_en-GB": {
|
"lang_en_GB": {
|
||||||
"message": "English (British)"
|
"message": "English (British)"
|
||||||
},
|
},
|
||||||
"lang_pt-PT": {
|
"lang_pt_PT": {
|
||||||
"message": "Portuguese"
|
"message": "Portuguese"
|
||||||
},
|
},
|
||||||
"lang_pt-BR": {
|
"lang_pt_BR": {
|
||||||
"message": "Portuguese (Brazilian)"
|
"message": "Portuguese (Brazilian)"
|
||||||
},
|
},
|
||||||
"lang_zh": {
|
"lang_zh": {
|
||||||
|
|
|
@ -8,7 +8,7 @@ export default (translationApi) => {
|
||||||
const langList = translationApi === "google" ? langListGoogle : langListDeepl;
|
const langList = translationApi === "google" ? langListGoogle : langListDeepl;
|
||||||
const langOptions = langList.map(lang => ({
|
const langOptions = langList.map(lang => ({
|
||||||
value: lang,
|
value: lang,
|
||||||
name: browser.i18n.getMessage("lang_" + lang)
|
name: browser.i18n.getMessage("lang_" + lang.replace("-", "_"))
|
||||||
}));
|
}));
|
||||||
langOptions.sort(alphabeticallySort);
|
langOptions.sort(alphabeticallySort);
|
||||||
return langOptions;
|
return langOptions;
|
||||||
|
|
Loading…
Reference in a new issue