Files
einundzwanzig-portal/config/translation.php
Shift 5776b01d15 Apply Laravel coding style
Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions.

You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root.

For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
2023-02-19 18:05:16 +01:00

78 lines
2.3 KiB
PHP

<?php
return [
/*
|--------------------------------------------------------------------------
| Package driver
|--------------------------------------------------------------------------
|
| The package supports different drivers for translation management.
|
| Supported: "file", "database"
|
*/
'driver' => env('TRANSLATION_DRIVER', 'file'),
/*
|--------------------------------------------------------------------------
| Route group configuration
|--------------------------------------------------------------------------
|
| The package ships with routes to handle language management. Update the
| configuration here to configure the routes with your preferred group options.
|
*/
'route_group_config' => [
'middleware' => 'translation',
],
/*
|--------------------------------------------------------------------------
| Translation methods
|--------------------------------------------------------------------------
|
| Update this array to tell the package which methods it should look for
| when finding missing translations.
|
*/
'translation_methods' => ['trans', '__'],
/*
|--------------------------------------------------------------------------
| Scan paths
|--------------------------------------------------------------------------
|
| Update this array to tell the package which directories to scan when
| looking for missing translations.
|
*/
'scan_paths' => [app_path(), resource_path(), base_path('vendor')],
/*
|--------------------------------------------------------------------------
| UI URL
|--------------------------------------------------------------------------
|
| Define the URL used to access the language management too.
|
*/
'ui_url' => 'languages',
/*
|--------------------------------------------------------------------------
| Database settings
|--------------------------------------------------------------------------
|
| Define the settings for the database driver here.
|
*/
'database' => [
'connection' => '',
'languages_table' => 'languages',
'translations_table' => 'translations',
],
];