Fix locale.currencySym

master
Gordon Williams 2020-03-25 22:27:20 +00:00
parent a874d5838c
commit 755580f092
3 changed files with 3 additions and 2 deletions

View File

@ -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",

View File

@ -1 +1,2 @@
0.01: New App! 0.01: New App!
0.02: Fix locale.currencySym

View File

@ -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),