- Fix: Extension locales with hyphens

- npm: Bump to 4.1.0
This commit is contained in:
Brett Zamir
2018-11-29 20:41:50 +08:00
parent 99ec41a3c3
commit c6d07fbb7c
14 changed files with 14 additions and 13 deletions

View File

@@ -359,7 +359,7 @@ function getImportLocale ({defaultLang, defaultName}) {
function importLocale (language) {
const url = `${curConfig.extPath}ext-locale/${name}/${language}.js`;
return importSetGlobalDefault(url, {
global: `svgEditorExtensionLocale_${name}_${language}`
global: `svgEditorExtensionLocale_${name}_${language.replace(/-/g, '_')}`
});
}
try {