locale-service 0.2.1 → 0.2.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/lib/index.js +4 -0
- package/package.json +1 -1
- package/src/index.ts +5 -0
package/lib/index.js
CHANGED
|
@@ -82,6 +82,10 @@ exports.vi = { "id": "vi-VN", "countryCode": "VN", "dateFormat": "dd/MM/yyyy", "
|
|
|
82
82
|
exports.us = { "id": "en-US", "countryCode": "US", "dateFormat": "M/d/yyyy", "firstDayOfWeek": 1, "decimalSeparator": ".", "groupSeparator": ",", "decimalDigits": 2, "currencyCode": "USD", "currencySymbol": "$", "currencyPattern": 0 };
|
|
83
83
|
exports.th = { "id": "th-TH", "countryCode": "TH", "dateFormat": "d/M/yyyy", "firstDayOfWeek": 2, "decimalSeparator": ".", "groupSeparator": ",", "decimalDigits": 2, "currencyCode": "THB", "currencySymbol": "฿", "currencyPattern": 0 };
|
|
84
84
|
exports.id = { "id": "id-ID", "countryCode": "ID", "dateFormat": "dd/MM/yyyy", "firstDayOfWeek": 2, "decimalSeparator": ",", "groupSeparator": ".", "decimalDigits": 0, "currencyCode": "IDR", "currencySymbol": "Rp", "currencyPattern": 0 };
|
|
85
|
+
exports.viLocale = exports.vi;
|
|
86
|
+
exports.usLocale = exports.us;
|
|
87
|
+
exports.thLocale = exports.th;
|
|
88
|
+
exports.idLocale = exports.id;
|
|
85
89
|
exports.usd = {
|
|
86
90
|
code: "USD",
|
|
87
91
|
symbol: "$",
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -130,6 +130,11 @@ export const us = {"id":"en-US","countryCode":"US","dateFormat":"M/d/yyyy","firs
|
|
|
130
130
|
export const th = {"id":"th-TH","countryCode":"TH","dateFormat":"d/M/yyyy","firstDayOfWeek":2,"decimalSeparator":".","groupSeparator":",","decimalDigits":2,"currencyCode":"THB","currencySymbol":"฿","currencyPattern":0}
|
|
131
131
|
export const id = {"id":"id-ID","countryCode":"ID","dateFormat":"dd/MM/yyyy","firstDayOfWeek":2,"decimalSeparator":",","groupSeparator":".","decimalDigits":0,"currencyCode":"IDR","currencySymbol":"Rp","currencyPattern":0}
|
|
132
132
|
|
|
133
|
+
export const viLocale = vi
|
|
134
|
+
export const usLocale = us
|
|
135
|
+
export const thLocale = th
|
|
136
|
+
export const idLocale = id
|
|
137
|
+
|
|
133
138
|
export const usd: Currency = {
|
|
134
139
|
code: "USD",
|
|
135
140
|
symbol: "$",
|