Fix manifest not loading in Chrome

This commit is contained in:
sienori 2022-03-05 14:40:45 +09:00
parent 719c9e6ff6
commit 9de20bdd28
2 changed files with 7 additions and 7 deletions

View file

@ -482,10 +482,10 @@
"lang_ny": {
"message": "Chewa"
},
"lang_zh-CN": {
"lang_zh_CN": {
"message": "Chinese (Simplified)"
},
"lang_zh-TW": {
"lang_zh_TW": {
"message": "Chinese (Traditional)"
},
"lang_co": {
@ -767,16 +767,16 @@
"lang_zu": {
"message": "Zulu"
},
"lang_en-US": {
"lang_en_US": {
"message": "English (American)"
},
"lang_en-GB": {
"lang_en_GB": {
"message": "English (British)"
},
"lang_pt-PT": {
"lang_pt_PT": {
"message": "Portuguese"
},
"lang_pt-BR": {
"lang_pt_BR": {
"message": "Portuguese (Brazilian)"
},
"lang_zh": {

View file

@ -8,7 +8,7 @@ export default (translationApi) => {
const langList = translationApi === "google" ? langListGoogle : langListDeepl;
const langOptions = langList.map(lang => ({
value: lang,
name: browser.i18n.getMessage("lang_" + lang)
name: browser.i18n.getMessage("lang_" + lang.replace("-", "_"))
}));
langOptions.sort(alphabeticallySort);
return langOptions;