php - yii2 Translation framework messages format number -


i want change format number translation framework messages. more validation messages maximum of characters textarea in language.

for example: "description should contain @ 2,000 characters" => "descripción debería contener como máximo 2000 caracteres".

for task have addes config (web.php):

... 'i18n' => [         'translations' => [             'yii' => [                 'class' => 'yii\i18n\phpmessagesource',                 'sourcelanguage' => 'es-es',                 'basepath' => '@app/messages'             ],         ],     ], ... 

with have created "yii.php" file @ "app/messages/es-es" phrase translation. working.

i have customized formatting rules in config (web.php) with:

... 'formatter' => [         'class' => 'yii\i18n\formatter',         'nulldisplay' => '',         'thousandseparator' => '.',         'decimalseparator' => ',',     ], ... 

but not working.

i have installed "php intl extension" not working yet.

how can fix issue?


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -