nemmo\attachments\Module::registerTranslations PHP Method

registerTranslations() public method

    public function registerTranslations()
    {
        \Yii::$app->i18n->translations['nemmo/*'] = ['class' => PhpMessageSource::className(), 'sourceLanguage' => 'en', 'basePath' => '@vendor/nemmo/yii2-attachments/src/messages', 'fileMap' => ['nemmo/attachments' => 'attachments.php']];
    }