Closed nvlad closed 7 years ago
Thank you for reporting @nvlad, shouldn't the category be imperavi
? Or that's a Yii feature for addressing translations in extensions?
Plugin found i18n declaration in extension vova07/yii2-imperavi-widget
and add in completion list(category & message), also MissingTranslationsInspector mark this message as missed
I see, checking this.
I have this warning too but with my own messages. Placing messages folder to project root doesn't help.
common/config.php:
return [
...
'components' => [
...
'i18n' => [
'translations' => [
'app*' => $appMsgs = [
'class' => 'yii\i18n\PhpMessageSource',
'basePath' => '@messages',
],
],
],
],
];
bootstrap.php:
Yii::setAlias('@messages', dirname(__DIR__) . '/messages');
@TrueXakeP: the plugin expect translation files to be directly in ru/uk directory (the common/config.php is not parsed, we are following Yii2/Craft3 directory structure here).
Alternatively in v1.0.0 you can deactivate this specific case reports in the inspection settings (but autocompletion will remain)
with extension "vova07/yii2-imperavi-widget"