Returns the internationalization (i18n) component
public getI18n ( ) : yii\i18n\I18N | ||
return | yii\i18n\I18N | the internationalization application component. |
/** * @param \yii\base\Application $app */ public function bootstrap($app) { if ($app->getI18n() && !array_key_exists('extensions/trntv/filekit', $app->getI18n()->translations)) { $app->getI18n()->translations['extensions/trntv/filekit'] = ['class' => 'yii\\i18n\\PhpMessageSource', 'sourceLanguage' => 'en-US', 'basePath' => '@trntv/filekit/messages', 'fileMap' => ['extensions/trntv/filekit' => 'filekit.php']]; } }