Decimal not correctly set in swedish internationalization file

Decimal not correctly set in swedish internationalization file

BjornHaBjornHa Posts: 56Questions: 9Answers: 0

Decimal in https://cdn.datatables.net/plug-ins/2.3.3/i18n/sv-SE.json is set to "":
"decimal": "",
In the Language settings for swedish it is set to ","

KR,
Bjørn H

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 65,078Questions: 1Answers: 10,775 Site admin
    Answer ✓

    Hi Bjørn,

    I need to spend a little time on investigation and thought here. Ideally that value shouldn't be set at all (which it isn't by default), and the locale should be detected automatically from the user's browser - that's what the number renderer does.

    The value over the wire (i.e. Ajax loaded data) should be with a period, since that is what computers rekognise as a number, and then the value localised on output.

    The exception is for DOM loaded data which has already been localised - I think that is the only time that decimal should be set.

    Allan

  • BjornHaBjornHa Posts: 56Questions: 9Answers: 0

    OK, we still use some DOM loaded data but not much, and today we have decimal set as "," globally to make everything OK.

    I will upgrade all DataTables components on our test site and send use decimal set to "" (which is what now is in the file) and see if/where we see any problems with that.

    KR,
    Bjørn H

Sign In or Register to comment.