0.1.0 • Published 7 years ago

laravel-vue-i18n-generator-webpack v0.1.0

Weekly downloads
116
License
MIT
Repository
github
Last release
7 years ago

Laravel Vue-i18n Generator Webpack

This webpack plugin allow you to keep updated your vue-i18n localizations with laravel localizations. This is a wrapper for webpack around Martin Lindhe's laravel-vue-i18n-generator.

Requirements

Usage

Install laravel-vue-i18n-generator (see his repo for more info):

composer require martinlindhe/laravel-vue-i18n-generator

In config/app.php add to providers:

MarinLindhe\VueInternationalizationGenerator\GeneratorProvider::class,

Install laravel-vue-i18n-generator-webpack. This package is still in development, so it isn't on npmjs yet.

//npm
npm install https://github.com/cappuc/laravel-vue-i18n-generator-webpack.git --save

//yarn
yarn add https://github.com/cappuc/laravel-vue-i18n-generator-webpack.git

Add to your webpack config

const LaravelVueI18nGenerator = require('laravel-vue-i18n-generator-webpack')

...
plugins: [
   new LaravelVueI18nGenerator 
]
...

Licence

Under MIT