updated README.md
This commit is contained in:
parent
58d28c0bc4
commit
f1a330f7d0
16
README.md
16
README.md
@ -41,21 +41,7 @@ to the require section of your `composer.json` file.
|
|||||||
Translations
|
Translations
|
||||||
----
|
----
|
||||||
|
|
||||||
To use translations, configure your app like following
|
The i18n configuration will be automatically added to your application configuration via bootstrapping process.
|
||||||
```php
|
|
||||||
'components' => [
|
|
||||||
// ...
|
|
||||||
'i18n' => [
|
|
||||||
'translations' => [
|
|
||||||
'yii/bootstrap5*' => [
|
|
||||||
'class' => 'yii\i18n\GettextMessageSource',
|
|
||||||
'sourceLanguage' => 'en-US',
|
|
||||||
'basePath' => '@yii/bootstrap5/messages',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
],
|
|
||||||
],
|
|
||||||
```
|
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
----
|
----
|
||||||
|
Loading…
Reference in New Issue
Block a user