-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathconfig.php
70 lines (60 loc) · 2.51 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
return [
/*
|--------------------------------------------------------------------------
| Define the languages you want exported messages for
|--------------------------------------------------------------------------
*/
'locales' => ['en'],
/*
|--------------------------------------------------------------------------
| Define the target to save the exported messages to
|--------------------------------------------------------------------------
|
| Directory for storing the static files generated when using file storage.
|
*/
'storage_path' => public_path('vendor/js-localization/'),
/*
|--------------------------------------------------------------------------
| Define the messages to export
|--------------------------------------------------------------------------
|
| An array containing the keys of the messages you wish to make accessible
| for the Javascript code.
| Remember that the number of messages sent to the browser influences the
| time the website needs to load. So you are encouraged to limit these
| messages to the minimum you really need.
|
| Supports nesting:
| [ 'mynamespace' => ['test1', 'test2'] ]
| for instance will be internally resolved to:
| ['mynamespace.test1', 'mynamespace.test2']
|
*/
'messages' => [],
/*
|--------------------------------------------------------------------------
| Set the keys of config properties you want to use in javascript.
| Caution: Do not expose any configuration values that should be kept privately!
|--------------------------------------------------------------------------
*/
'config' => [
/*'app.debug' // example*/
],
/*
|--------------------------------------------------------------------------
| Disables the config cache if set to true, so you don't have to
| run `php artisan js-localization:refresh` each time you change configuration files.
| Attention: Should not be used in production mode due to decreased performance.
|--------------------------------------------------------------------------
*/
'disable_config_cache' => false,
/*
|--------------------------------------------------------------------------
| Whether or not to split up the exported messages.js file into separate
| lang-{locale}.js files.
|--------------------------------------------------------------------------
*/
'split_export_files' => false,
];