Generate WordPress translation files from your mix config.
Additionally, if there are .po
files present in the output directory they will be JSON-ified for easy getting.
npm install laravel-mix-wordpress-translate --save-dev
yarn add -D laravel-mix-wordpress-translate
require("laravel-mix-wp-i18n")
mix.i18n(dir, file)
mix.i18n('./lang/', 'trans.pot')