@urso/core 0.4.25 → 0.4.26
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.
package/package.json
CHANGED
|
@@ -68,7 +68,10 @@ class ModulesI18nController {
|
|
|
68
68
|
_interpolate(string, params) {
|
|
69
69
|
const names = Object.keys(params);
|
|
70
70
|
const vals = Object.values(params);
|
|
71
|
-
|
|
71
|
+
const encodedString = encodeURIComponent(string);
|
|
72
|
+
const resultEncodedString = new Function(...names, `return \`${encodedString}\`;`)(...vals);
|
|
73
|
+
|
|
74
|
+
return decodeURIComponent(resultEncodedString);
|
|
72
75
|
}
|
|
73
76
|
}
|
|
74
77
|
|