Currency Formater maybe a BUG

Hi, if i use currency formatter it give diferent results and not always are well, maybe is a BUG but i need help to confirm it.

Example modify main.php to try with Spain Currency




'language' => 'es_ES',

    'components' => [

        'formatter' => [

            'class' => 'yii\i18n\Formatter',

            'decimalSeparator' => '.',

            'thousandSeparator' => ',',

            'nullDisplay' => '',

        ],



Change 1222333.44 to 1,222,333.44 € and that is correct

Example modify main.php to try with USA Currency




'language' => 'en_US',

    'components' => [

        'formatter' => [

            'class' => 'yii\i18n\Formatter',

            'decimalSeparator' => '.',

            'thousandSeparator' => ',',

            'nullDisplay' => '',

        ],



Change 1222333.44 to $ 1,222,333.44 and that is correct

But

Example with ERROR or posible BUG modify main.php to try with Mexican Currency




'language' => 'es_MX',

    'components' => [

        'formatter' => [

            'class' => 'yii\i18n\Formatter',

            'decimalSeparator' => '.',

            'thousandSeparator' => ',',

            'nullDisplay' => '',

        ],



Change 1222333.44 to € 1222333.44 and that is wrong because it use "EURO" and it must use "$" and it do not use "SEPARATOR".




'language' => 'es_MX',

    'components' => [

        'formatter' => [

            'class' => 'yii\i18n\Formatter',

            'decimalSeparator' => '.',

            'thousandSeparator' => ',',

            'nullDisplay' => '',

            'numberFormatterSymbols' => [

                NumberFormatter::CURRENCY_SYMBOL => '$',

            ],

        ],



Change 1222333.44 to € 1222333.44 In this case i can force change "EURO" to "$" but it do not use "SEPARATOR".

Can someone confirm is this is a BUG or if i need change something in my code

The test was made with:

Yii 2.0.6

PHP 5.5.30

ICU 55.1

Warm Regards

My mistake, the correct locales to Mexican Currency is


'language' => 'es-MX',