Yii2 i18n Javascript Extension. Support for translations from javascript using the native i18n component of Yii2.
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist opencode506/yii2-i18njs "*"
or add
"opencode506/yii2-i18njs": "*"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code by :
<?= \opencode506\AutoloadExample::widget(); ?>```