- Fix: Extension locales with hyphens
- npm: Bump to 4.1.0
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -28900,7 +28900,7 @@
|
||||
importLocale = function _ref3(language) {
|
||||
var url = "".concat(curConfig.extPath, "ext-locale/").concat(name, "/").concat(language, ".js");
|
||||
return importSetGlobalDefault(url, {
|
||||
global: "svgEditorExtensionLocale_".concat(name, "_").concat(language)
|
||||
global: "svgEditorExtensionLocale_".concat(name, "_").concat(language.replace(/-/g, '_'))
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user