Skip to content

localization, internationalization decimal-separator #187

Open
@inox99

Description

@inox99

is it possible to setup sprintf to format due to a language-specifier (e.g."fr", "es", "de") to have the output accordingly? So:
console.log(sprintf("%0.2f", 1.23456789)); to print
1.23 for "en"
1,23 for "de"
either by choosing a language-specifier or by setting the decimal-separator-character?

Edgar

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