Skip to content

Commit c6d07fb

Browse files
committed
- Fix: Extension locales with hyphens
- npm: Bump to 4.1.0
1 parent 99ec41a commit c6d07fb

14 files changed

+14
-13
lines changed

CHANGES.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SVG-Edit CHANGES
22

3-
# ?
3+
# 4.1.0
44

55
- Fix: Avoid cross-frame unsafe `instanceof`
66
- Enhancement: Add svgcanvas distributions

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ incorporating SVGEdit.
107107

108108
## Recent news
109109

110+
- 2018-11-29 Published 4.0.2 (Fix for hyphenated locales, svgcanvas distributions)
110111
- 2018-11-16 Published 4.0.0/4.0.1 (Move to Promise-based APIs)
111112
- 2018-11-01 Published 3.2.0 (Update qunit to resolve security vulnerability of a dependency)
112113
- 2018-10-25 Published 3.1.1 (Fix for saving SVG on Firefox)

dist/index-es.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28897,7 +28897,7 @@ function getImportLocale(_ref) {
2889728897
importLocale = function _ref3(language) {
2889828898
var url = "".concat(curConfig.extPath, "ext-locale/").concat(name, "/").concat(language, ".js");
2889928899
return importSetGlobalDefault(url, {
28900-
global: "svgEditorExtensionLocale_".concat(name, "_").concat(language)
28900+
global: "svgEditorExtensionLocale_".concat(name, "_").concat(language.replace(/-/g, '_'))
2890128901
});
2890228902
};
2890328903

dist/index-es.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index-es.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index-umd.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28903,7 +28903,7 @@
2890328903
importLocale = function _ref3(language) {
2890428904
var url = "".concat(curConfig.extPath, "ext-locale/").concat(name, "/").concat(language, ".js");
2890528905
return importSetGlobalDefault(url, {
28906-
global: "svgEditorExtensionLocale_".concat(name, "_").concat(language)
28906+
global: "svgEditorExtensionLocale_".concat(name, "_").concat(language.replace(/-/g, '_'))
2890728907
});
2890828908
};
2890928909

dist/index-umd.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index-umd.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/ReleaseInstructions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
1. Add new release info to `Recent news` section in README
3131
1. Commit these changes
3232
<!-- with `git commit -m "Updating Makefile and CHANGES for release X.Y.Z"`-->.
33-
1. Tag the version, prefixed by "v", e.g., `v3.0.1`.
33+
1. Tag the version, prefixed by "v", e.g., `v4.0.1`.
3434

3535
The above steps can be done on a fork and committed via a pull request.
3636

editor/svg-editor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ function getImportLocale ({defaultLang, defaultName}) {
359359
function importLocale (language) {
360360
const url = `${curConfig.extPath}ext-locale/${name}/${language}.js`;
361361
return importSetGlobalDefault(url, {
362-
global: `svgEditorExtensionLocale_${name}_${language}`
362+
global: `svgEditorExtensionLocale_${name}_${language.replace(/-/g, '_')}`
363363
});
364364
}
365365
try {

editor/xdomain-svgedit-config-iife.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28900,7 +28900,7 @@
2890028900
importLocale = function _ref3(language) {
2890128901
var url = "".concat(curConfig.extPath, "ext-locale/").concat(name, "/").concat(language, ".js");
2890228902
return importSetGlobalDefault(url, {
28903-
global: "svgEditorExtensionLocale_".concat(name, "_").concat(language)
28903+
global: "svgEditorExtensionLocale_".concat(name, "_").concat(language.replace(/-/g, '_'))
2890428904
});
2890528905
};
2890628906

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "svgedit",
3-
"version": "4.0.1",
3+
"version": "4.1.0",
44
"description": "Powerful SVG-Editor for your browser ",
55
"main": "dist/index-umd.js",
66
"module": "dist/index-es.js",

svgedit-config-iife.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28900,7 +28900,7 @@
2890028900
importLocale = function _ref3(language) {
2890128901
var url = "".concat(curConfig.extPath, "ext-locale/").concat(name, "/").concat(language, ".js");
2890228902
return importSetGlobalDefault(url, {
28903-
global: "svgEditorExtensionLocale_".concat(name, "_").concat(language)
28903+
global: "svgEditorExtensionLocale_".concat(name, "_").concat(language.replace(/-/g, '_'))
2890428904
});
2890528905
};
2890628906

0 commit comments

Comments
 (0)