Skip to content

x/text/currency: position of the ISO code or sign in amounts #14308

@arvenil

Description

@arvenil
    currencyCode = "PLN"
    unit, _ := currency.ParseISO(currencyCode)
    p := message.NewPrinter(language.Polish)
    amount := float64(100)
    p.Print(currency.Symbol(unit.Amount(amount)))

The result is zł 100 but I would expect 100 zł.
https://en.wikipedia.org/wiki/ISO_4217#Position_of_ISO_4217_code_in_amounts
http://publications.europa.eu/code/en/en-370303.htm#position

I would expect 100 zł but maybe there is "other" library/func/method that handles order?
Or if this is on TODO list, any idea how could I workaround the problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions