webpack-easyi18n 0.3.8 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +4 -3
  2. package/src/index.js +1 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpack-easyi18n",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "Go from gettext catalog (.po files) to embeded localization in your Webpack bundles",
5
5
  "engines": {
6
6
  "node": ">=4.3.0 <5.0.0 || >=5.10"
@@ -11,8 +11,9 @@
11
11
  "main": "src/index.js",
12
12
  "scripts": {
13
13
  "test": "echo \"Error: no test specified\" && exit 1",
14
- "clean:example": "rimraf example\\dist example\\locale\\webpack-easyi18n-temp",
15
- "build:example": "npm run clean:example && webpack -c example\\webpack.config.js"
14
+ "example:clean": "rimraf example\\dist example\\locale\\webpack-easyi18n-temp",
15
+ "example:build": "npm run example:clean && webpack -c example\\webpack.config.js",
16
+ "example:generatetransaltions": "dotnet tool restore && dotnet tool run generatepot --app-settings-paths=\"./example/appsettings.json\""
16
17
  },
17
18
  "dependencies": {
18
19
  "i18next-conv": "^4.0.3"
package/src/index.js CHANGED
@@ -15,12 +15,6 @@ class EasyI18nPlugin {
15
15
  includeUrls: null,
16
16
  };
17
17
 
18
- static escapeSpeechMarks = (string) => {
19
- return string
20
- .replace(/'/g, '\\\'')
21
- .replace(/"/g, '\\"');
22
- }
23
-
24
18
  constructor(locale, options = {}) {
25
19
  this.locale = locale;
26
20
  this.options = {
@@ -133,7 +127,7 @@ class EasyI18nPlugin {
133
127
  });
134
128
  }
135
129
 
136
- return EasyI18nPlugin.escapeSpeechMarks(replacement);
130
+ return replacement;
137
131
  });
138
132
 
139
133
  compilation.updateAsset(filename, new SourceMapSource(