updated README.md

This commit is contained in:
Simon Karlen 2022-01-06 07:48:50 +01:00
parent 58d28c0bc4
commit f1a330f7d0
No known key found for this signature in database
GPG Key ID: 0630C27D666EBCC3

View File

@ -41,21 +41,7 @@ to the require section of your `composer.json` file.
Translations
----
To use translations, configure your app like following
```php
'components' => [
// ...
'i18n' => [
'translations' => [
'yii/bootstrap5*' => [
'class' => 'yii\i18n\GettextMessageSource',
'sourceLanguage' => 'en-US',
'basePath' => '@yii/bootstrap5/messages',
],
],
],
],
```
The i18n configuration will be automatically added to your application configuration via bootstrapping process.
Usage
----