awing-library 2.1.2-dev.96 → 2.1.2-dev.97
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/esm/Helpers/number.d.ts +2 -1
- package/dist/esm/index.js +2 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Xử lý các thao tác số học và toán học một cách tiện lợi.
|
|
3
3
|
* Hỗ trợ các phép toán phức tạp hoặc tối ưu hóa các logic tính toán thường dùng.
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
/** Danh sách các nước */
|
|
6
|
+
export type Locale = 'vi' | 'en' | 'ja' | 'th' | 'id' | 'fil';
|
|
6
7
|
export declare function formatNumberByLocale(value?: number | bigint, lang?: string, locale?: string): string;
|
|
7
8
|
export declare function roundDecimalNumber(number: any): string | null;
|
|
8
9
|
export declare function WMAPEcalculator(data: any): number | "∞";
|
package/dist/esm/index.js
CHANGED
|
@@ -44697,7 +44697,8 @@ function formatNumberByLocale(value, lang, locale) {
|
|
|
44697
44697
|
en: 'en-US',
|
|
44698
44698
|
ja: 'ja-JP',
|
|
44699
44699
|
th: 'th-TH',
|
|
44700
|
-
id: 'id-ID'
|
|
44700
|
+
id: 'id-ID',
|
|
44701
|
+
fil: 'fil-PH'
|
|
44701
44702
|
};
|
|
44702
44703
|
const currentLang = lang || localStorage.getItem('i18nextLng');
|
|
44703
44704
|
if (value === undefined) return '';else if (currentLang && lodashExports.keysIn(localesMap).includes(currentLang)) return new Intl.NumberFormat(localesMap[currentLang]).format(value);else return new Intl.NumberFormat(locale).format(value);
|
package/dist/index.d.ts
CHANGED
|
@@ -3341,7 +3341,8 @@ declare function parseJSON(str: string): any;
|
|
|
3341
3341
|
* Xử lý các thao tác số học và toán học một cách tiện lợi.
|
|
3342
3342
|
* Hỗ trợ các phép toán phức tạp hoặc tối ưu hóa các logic tính toán thường dùng.
|
|
3343
3343
|
*/
|
|
3344
|
-
|
|
3344
|
+
/** Danh sách các nước */
|
|
3345
|
+
type Locale = 'vi' | 'en' | 'ja' | 'th' | 'id' | 'fil';
|
|
3345
3346
|
declare function formatNumberByLocale(value?: number | bigint, lang?: string, locale?: string): string;
|
|
3346
3347
|
declare function roundDecimalNumber(number: any): string | null;
|
|
3347
3348
|
declare function WMAPEcalculator(data: any): number | "∞";
|