changeset 5ec0f9872885 in sao:6.0
details: https://hg.tryton.org/sao?cmd=changeset&node=5ec0f9872885
description:
        Set FractionDigits options to format CSV to locale

        The default browser options are 0 and 3 which are not enough so we set 
to the
        maximum supported.

        issue11499
        review439211003
        (grafted from 8ae142382bae11283b3ddf1706c6c4cf1a7c06d7)
diffstat:

 src/window.js |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r d2482244df19 -r 5ec0f9872885 src/window.js
--- a/src/window.js     Wed Jun 15 09:21:07 2022 +0200
+++ b/src/window.js     Tue Jun 21 10:12:25 2022 +0200
@@ -2055,7 +2055,10 @@
                         val, {'s': 1, 'm': 60, 'h': 60 * 60});
                 } else if (!isNaN(Number(val))) {
                     val = val.toLocaleString(
-                        Sao.i18n.BC47(Sao.i18n.getlang()));
+                        Sao.i18n.BC47(Sao.i18n.getlang()), {
+                            'minimumFractionDigits': 0,
+                            'maximumFractionDigits': 20,
+                        });
                 }
             } else if (val.isTimeDelta) {
                 val = val.asSeconds();

Reply via email to