@lokascript/i18n 2.9.0 → 2.9.2
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.d.cts +34 -34
- package/dist/index.d.ts +34 -34
- 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.cjs
CHANGED
|
@@ -7152,10 +7152,14 @@ function isDigit(char) {
|
|
|
7152
7152
|
return /\d/.test(char);
|
|
7153
7153
|
}
|
|
7154
7154
|
function isIdentifierStart(char) {
|
|
7155
|
-
return /[a-zA-Z_
|
|
7155
|
+
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(
|
|
7156
|
+
char
|
|
7157
|
+
);
|
|
7156
7158
|
}
|
|
7157
7159
|
function isIdentifierPart(char) {
|
|
7158
|
-
return /[a-zA-Z0-9_
|
|
7160
|
+
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(
|
|
7161
|
+
char
|
|
7162
|
+
);
|
|
7159
7163
|
}
|
|
7160
7164
|
function consumeWhitespace(text, start) {
|
|
7161
7165
|
let end = start;
|
|
@@ -9058,7 +9062,9 @@ var NumberFormatter = class {
|
|
|
9058
9062
|
const mergedOptions = { ...this.defaultOptions, ...options };
|
|
9059
9063
|
try {
|
|
9060
9064
|
const result = new Intl.NumberFormat(this.locale, mergedOptions).format(value);
|
|
9061
|
-
if (mergedOptions.style === "currency" && !/[
|
|
9065
|
+
if (mergedOptions.style === "currency" && !/[$\u20ac\u00a3\u00a5\u20b9\u20a9\u20bd\u0e3f\u20aa\u20b4\u20b1\u20ab\u20b5\u20a6]/.test(
|
|
9066
|
+
result
|
|
9067
|
+
)) {
|
|
9062
9068
|
return this.fallbackFormat(value, mergedOptions);
|
|
9063
9069
|
}
|
|
9064
9070
|
if (mergedOptions.style === "percent" && !result.includes("%")) {
|