title: yii2 Translation framework messages format number
body: <p>I want to change the format number for the translation framework messages. More specifically the validation messages with maximum of characters for a textarea in another language.</p>
  
  <p>For example:
  "Description should contain at most 2,000 characters" => "Descripción debería contener como máximo 2000 caracteres".</p>
  
  <p>For this task I have addes to config (web.php):</p>
  
  <pre><code>...
  'i18n' =&gt; [
          'translations' =&gt; [
              'yii' =&gt; [
                  'class' =&gt; 'yii\i18n\PhpMessageSource',
                  'sourceLanguage' =&gt; 'es-ES',
                  'basePath' =&gt; '@app/messages'
              ],
          ],
      ],
  ...
  </code></pre>
  
  <p>With this I have created a "yii.php" file at "app/messages/es-ES" with the phrase for translation. This is working.</p>
  
  <p>I have customized the formatting rules in config (web.php) with:</p>
  
  <pre><code>...
  'formatter' =&gt; [
          'class' =&gt; 'yii\i18n\Formatter',
          'nullDisplay' =&gt; '',
          'thousandSeparator' =&gt; '.',
          'decimalSeparator' =&gt; ',',
      ],
  ...
  </code></pre>
  
  <p>But this is not working.</p>
  
  <p>I have installed "PHP intl extension" but this is not working yet.</p>
  
  <p>How can I fix this issue?</p>