Skip to content

Investigate quirks when rendering prices in Farsi #74

@bojanz

Description

@bojanz

Our number format for Farsi ("fa") puts the currency symbol before the amount.

However, PHP's native NumberFormatter varies the symbol location based on the currency:

$formatter = new \NumberFormatter('fa', \NumberFormatter::CURRENCY);
echo $formatter->formatCurrency('645000', 'USD'); // Symbol before the amount
echo $formatter->formatCurrency('645000', 'IRR'); // Symbol after the amount

This could be related to #65, where our logic is too simplistic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions