Skip to content

[Intl] Twig is not using bundled ICU data #15007

Closed
@teohhanhui

Description

@teohhanhui

Of course this is perfectly understandable, but it creates inconsistencies in the results...

e.g.

use Symfony\Component\Intl\Intl;

Intl::getCurrencyBundle()->getCurrencySymbol('MYR', 'en_MY');
// RM

vs

{{ 100|localizedcurrency('MYR', 'en_MY') }}
{# MYR100 #}
{# twig/extensions - Twig_Extensions_Extension_Intl #}

with ICU 52 (Ubuntu 14.04 "trusty")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions