This should fix locale information for specific languages. It’s not perfect yet though.

This commit is contained in:
James Cole
2017-01-08 16:55:02 +01:00
parent 8a00101470
commit 8208d44466
3 changed files with 32 additions and 9 deletions

View File

@@ -7,7 +7,7 @@
*
* See the LICENSE file for details.
*/
/** global: moment, dateRangeConfig, accounting, currencySymbol, mon_decimal_point, frac_digits, showFullList, showOnlyTop, mon_thousands_sep */
/** global: moment, accountingConfig, dateRangeConfig, accounting, currencySymbol, mon_decimal_point, frac_digits, showFullList, showOnlyTop, mon_thousands_sep */
$(function () {
@@ -112,7 +112,7 @@ function currencySelect(e) {
accounting.settings = {
currency: {
symbol: currencySymbol, // default currency symbol is '$'
format: "%s %v", // controls output: %s = symbol, %v = value/number (can be object: see below)
format: accountingConfig, // controls output: %s = symbol, %v = value/number (can be object: see below)
decimal: mon_decimal_point, // decimal point separator
thousand: mon_thousands_sep, // thousands separator
precision: frac_digits // decimal places