Skip to content

Commit

Permalink
- Fix: Extension locales with hyphens
Browse files Browse the repository at this point in the history
- npm: Bump to 4.1.0
  • Loading branch information
brettz9 committed Nov 29, 2018
1 parent 99ec41a commit c6d07fb
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SVG-Edit CHANGES

# ?
# 4.1.0

- Fix: Avoid cross-frame unsafe `instanceof`
- Enhancement: Add svgcanvas distributions
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion dist/index-es.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, '_'))
});
};

Expand Down
2 changes: 1 addition & 1 deletion dist/index-es.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index-es.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index-umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, '_'))
});
};

Expand Down
2 changes: 1 addition & 1 deletion dist/index-umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index-umd.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/ReleaseInstructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion editor/svg-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion editor/xdomain-svgedit-config-iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, '_'))
});
};

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion svgedit-config-iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, '_'))
});
};

Expand Down

0 comments on commit c6d07fb

Please sign in to comment.