mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-22 17:06:39 -06:00
Expand config for localisation
This commit is contained in:
parent
b72e8db7b1
commit
e77a1e403f
@ -78,6 +78,7 @@ return [
|
||||
// own stuff:
|
||||
TwigBridge\ServiceProvider::class,
|
||||
PragmaRX\Google2FALaravel\ServiceProvider::class,
|
||||
Mariuzzo\LaravelJsLocalization\LaravelJsLocalizationServiceProvider::class,
|
||||
|
||||
|
||||
/*
|
||||
|
23
config/localization-js.php
Normal file
23
config/localization-js.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
* Set the names of files you want to add to generated javascript.
|
||||
* Otherwise all the files will be included.
|
||||
*
|
||||
* 'messages' => [
|
||||
* 'validation',
|
||||
* 'forum/thread',
|
||||
* ],
|
||||
*/
|
||||
'messages' => [
|
||||
'components',
|
||||
'list',
|
||||
],
|
||||
|
||||
/*
|
||||
* The default path to use for the generated javascript.
|
||||
*/
|
||||
'path' => public_path('messages.js'),
|
||||
];
|
11
webpack.mix.js
vendored
11
webpack.mix.js
vendored
@ -11,5 +11,16 @@ let mix = require('laravel-mix');
|
||||
|
|
||||
*/
|
||||
|
||||
const WebpackShellPlugin = require('webpack-shell-plugin');
|
||||
|
||||
// Add shell command plugin configured to create JavaScript language file
|
||||
mix.webpackConfig({
|
||||
plugins:
|
||||
[
|
||||
new WebpackShellPlugin({onBuildStart:['php artisan lang:js resources/assets/js/messages.js --no-lib --quiet'], onBuildEnd:[]})
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
mix.js('resources/assets/js/app.js', 'public/js')
|
||||
.sass('resources/assets/sass/app.scss', 'public/css');
|
||||
|
Loading…
Reference in New Issue
Block a user