Fix locale.currencySym
parent
a874d5838c
commit
755580f092
|
|
@ -40,7 +40,7 @@
|
||||||
{ "id": "locale",
|
{ "id": "locale",
|
||||||
"name": "Languages",
|
"name": "Languages",
|
||||||
"icon": "locale.png",
|
"icon": "locale.png",
|
||||||
"version":"0.01",
|
"version":"0.02",
|
||||||
"description": "Translations for different countries",
|
"description": "Translations for different countries",
|
||||||
"tags": "tool,system,locale,translate",
|
"tags": "tool,system,locale,translate",
|
||||||
"type": "locale",
|
"type": "locale",
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
0.01: New App!
|
0.01: New App!
|
||||||
|
0.02: Fix locale.currencySym
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
locale = ${JSON.stringify(locales[lang])};
|
locale = ${JSON.stringify(locales[lang])};
|
||||||
exports = {
|
exports = {
|
||||||
lang: locale.lang,
|
lang: locale.lang,
|
||||||
currencySym: String.fromCharCode(locale.currency_symbol),
|
currencySym: locale.currency_symbol,
|
||||||
dow: (d,short) => {day = d.getDay();return (short) ? locale.abday.split(",")[day] : locale.day.split(",")[day];},
|
dow: (d,short) => {day = d.getDay();return (short) ? locale.abday.split(",")[day] : locale.day.split(",")[day];},
|
||||||
month: (d,short) => { month = d.getMonth(); return (short) ? locale.abmonth.split(",")[month] : locale.month.split(",")[month];},
|
month: (d,short) => { month = d.getMonth(); return (short) ? locale.abmonth.split(",")[month] : locale.month.split(",")[month];},
|
||||||
number: n => n.toString().replace(locale.thousands_sep, locale.decimal_point),
|
number: n => n.toString().replace(locale.thousands_sep, locale.decimal_point),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue