-
Notifications
You must be signed in to change notification settings - Fork 0
/
translation-loader.php
48 lines (41 loc) · 1.56 KB
/
translation-loader.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
<?php
return [
/**
* These loaders will load translations from different sources.
* You can use any class that implements the TranslationLoaderContract.
*/
'loaders' => [
\Esign\TranslationLoader\Loaders\DatabaseLoader::class,
],
/**
* This is the loader that combines all of the other loaders together.
* This class overrides Laravel's default `translation.loader`.
*/
'aggregate_loader' => \Esign\TranslationLoader\Loaders\AggregateLoader::class,
/**
* This is the model that will be used by the DatabaseLoader.
* You may provide a class that implements the UnderscoreTranslatable trait.
*/
'model' => \Esign\TranslationLoader\Models\Translation::class,
'cache' => [
/**
* The key that will be used to cache the database translations.
*/
'key' => 'esign.laravel-translation-loader.translations',
/**
* The duration for which database translations will be cached.
*/
'ttl' => \DateInterval::createFromDateString('24 hours'),
/**
* The cache store to be used for database translations.
* Use null to utilize the default cache store from the cache.php config file.
* To disable caching, you can use the 'array' store.
*/
'store' => null,
],
/**
* Configuration for the custom translator class that handles missing translation keys.
* This class overrides Laravel's default `translator` binding.
*/
'translator' => \Esign\TranslationLoader\Translator::class,
];