mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-20 11:19:16 +00:00
Expand config for localisation
This commit is contained in:
@@ -78,6 +78,7 @@ return [
|
|||||||
// own stuff:
|
// own stuff:
|
||||||
TwigBridge\ServiceProvider::class,
|
TwigBridge\ServiceProvider::class,
|
||||||
PragmaRX\Google2FALaravel\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')
|
mix.js('resources/assets/js/app.js', 'public/js')
|
||||||
.sass('resources/assets/sass/app.scss', 'public/css');
|
.sass('resources/assets/sass/app.scss', 'public/css');
|
||||||
|
Reference in New Issue
Block a user