Skip to content

"n" format specifier does not respect locale #14

Open
@karelkral

Description

@karelkral

String.Format with "n" specifier does not respect current locale settings.
In our country, there is a thousand separator " ". In your library is hardcoded thousand separator ".".
Please use settings from the current locale.

const formatted: string = String.Format("{0:n}", 10000);
returns "10.000"
whould return "10 000" with cs-CZ locale.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions