@lokascript/i18n 2.9.0 → 2.9.1
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/dist/index.cjs +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/lokascript-i18n.min.js +1 -1
- package/dist/lokascript-i18n.min.js.map +1 -1
- package/dist/lokascript-i18n.mjs +2804 -2804
- package/dist/lokascript-i18n.mjs.map +1 -1
- package/dist/plugins/vite.cjs +6 -2
- package/dist/plugins/vite.cjs.map +1 -1
- package/dist/plugins/vite.js +6 -2
- package/dist/plugins/vite.js.map +1 -1
- package/dist/plugins/webpack.cjs +6 -2
- package/dist/plugins/webpack.cjs.map +1 -1
- package/dist/plugins/webpack.js +6 -2
- package/dist/plugins/webpack.js.map +1 -1
- package/package.json +3 -3
- package/src/formatting.ts +6 -1
- package/src/utils/tokenizer-adapter.ts +6 -2
package/dist/index.js
CHANGED
|
@@ -7150,10 +7150,14 @@ function isDigit(char) {
|
|
|
7150
7150
|
return /\d/.test(char);
|
|
7151
7151
|
}
|
|
7152
7152
|
function isIdentifierStart(char) {
|
|
7153
|
-
return /[a-zA-Z_
|
|
7153
|
+
return /[a-zA-Z_$\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00d1\u00e0\u00e8\u00ec\u00f2\u00f9\u00c0\u00c8\u00cc\u00d2\u00d9\u4e00-\u9faf\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/.test(
|
|
7154
|
+
char
|
|
7155
|
+
);
|
|
7154
7156
|
}
|
|
7155
7157
|
function isIdentifierPart(char) {
|
|
7156
|
-
return /[a-zA-Z0-9_
|
|
7158
|
+
return /[a-zA-Z0-9_$\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00d1\u00e0\u00e8\u00ec\u00f2\u00f9\u00c0\u00c8\u00cc\u00d2\u00d9\u4e00-\u9faf\u3131-\u314e\u314f-\u3163\uac00-\ud7a3-]/.test(
|
|
7159
|
+
char
|
|
7160
|
+
);
|
|
7157
7161
|
}
|
|
7158
7162
|
function consumeWhitespace(text, start) {
|
|
7159
7163
|
let end = start;
|
|
@@ -9056,7 +9060,9 @@ var NumberFormatter = class {
|
|
|
9056
9060
|
const mergedOptions = { ...this.defaultOptions, ...options };
|
|
9057
9061
|
try {
|
|
9058
9062
|
const result = new Intl.NumberFormat(this.locale, mergedOptions).format(value);
|
|
9059
|
-
if (mergedOptions.style === "currency" && !/[
|
|
9063
|
+
if (mergedOptions.style === "currency" && !/[$\u20ac\u00a3\u00a5\u20b9\u20a9\u20bd\u0e3f\u20aa\u20b4\u20b1\u20ab\u20b5\u20a6]/.test(
|
|
9064
|
+
result
|
|
9065
|
+
)) {
|
|
9060
9066
|
return this.fallbackFormat(value, mergedOptions);
|
|
9061
9067
|
}
|
|
9062
9068
|
if (mergedOptions.style === "percent" && !result.includes("%")) {
|