Commit 7975ba09 by ff

Update i18n.md

Correction name ru_RU zh_CN to ru-RU zh-CN
parent 89849303
...@@ -27,13 +27,13 @@ Target language is what's currently used. It's defined in application configurat ...@@ -27,13 +27,13 @@ Target language is what's currently used. It's defined in application configurat
return [ return [
'id' => 'applicationID', 'id' => 'applicationID',
'basePath' => dirname(__DIR__), 'basePath' => dirname(__DIR__),
'language' => 'ru_RU' // ← here! 'language' => 'ru-RU' // ← here!
``` ```
Later you can easily change it in runtime: Later you can easily change it in runtime:
```php ```php
\Yii::$app->language = 'zh_CN'; \Yii::$app->language = 'zh-CN';
``` ```
> **Note**: please refer to [ICU documentation](http://userguide.icu-project.org/locale) in order to find out language > **Note**: please refer to [ICU documentation](http://userguide.icu-project.org/locale) in order to find out language
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment