- Fix: Extension locales with hyphens

- npm: Bump to 4.1.0
master
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

@ -1,6 +1,6 @@
# SVG-Edit CHANGES
# ?
# 4.1.0
- Fix: Avoid cross-frame unsafe `instanceof`
- Enhancement: Add svgcanvas distributions

View File

@ -107,6 +107,7 @@ incorporating SVGEdit.
## Recent news
- 2018-11-29 Published 4.0.2 (Fix for hyphenated locales, svgcanvas distributions)
- 2018-11-16 Published 4.0.0/4.0.1 (Move to Promise-based APIs)
- 2018-11-01 Published 3.2.0 (Update qunit to resolve security vulnerability of a dependency)
- 2018-10-25 Published 3.1.1 (Fix for saving SVG on Firefox)

2
dist/index-es.js vendored
View File

@ -28897,7 +28897,7 @@ function getImportLocale(_ref) {
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, '_'))
});
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/index-umd.js vendored
View File

@ -28903,7 +28903,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, '_'))
});
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -30,7 +30,7 @@
1. Add new release info to `Recent news` section in README
1. Commit these changes
<!-- with `git commit -m "Updating Makefile and CHANGES for release X.Y.Z"`-->.
1. Tag the version, prefixed by "v", e.g., `v3.0.1`.
1. Tag the version, prefixed by "v", e.g., `v4.0.1`.
The above steps can be done on a fork and committed via a pull request.

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 {

View File

@ -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, '_'))
});
};

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "svgedit",
"version": "4.0.1",
"version": "4.1.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "svgedit",
"version": "4.0.1",
"version": "4.1.0",
"description": "Powerful SVG-Editor for your browser ",
"main": "dist/index-umd.js",
"module": "dist/index-es.js",

View File

@ -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, '_'))
});
};