mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 06:37:55 +08:00 
			
		
		
		
	@ -27,13 +27,13 @@ Target language is what's currently used. It's defined in application configurat
 | 
			
		||||
return [
 | 
			
		||||
	'id' => 'applicationID',
 | 
			
		||||
	'basePath' => dirname(__DIR__),
 | 
			
		||||
	'language' => 'ru_RU' // ← here!
 | 
			
		||||
	'language' => 'ru-RU' // ← here!
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Later you can easily change it in runtime:
 | 
			
		||||
 | 
			
		||||
```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
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user