ldc-doux/config/translation.php

91 lines
2.5 KiB
PHP
Raw Permalink Normal View History

2022-01-25 14:07:34 +01:00
<?php
return [
2022-08-29 17:23:10 +02:00
2022-01-25 14:07:34 +01:00
/*
2022-08-11 12:34:27 +02:00
|--------------------------------------------------------------------------
| Package driver
|--------------------------------------------------------------------------
|
| The package supports different drivers for translation management.
|
| Supported: "file", "database"
|
2022-01-25 14:07:34 +01:00
*/
2022-08-29 17:23:10 +02:00
2022-07-27 13:16:09 +02:00
'driver' => 'database',
2022-01-25 14:07:34 +01:00
/*
2022-08-11 12:34:27 +02:00
|--------------------------------------------------------------------------
| 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.
|
2022-01-25 14:07:34 +01:00
*/
2022-08-29 17:23:10 +02:00
2022-01-25 14:07:34 +01:00
'route_group_config' => [
'middleware' => [
'web',
'auth:web',
],
],
/*
2022-08-11 12:34:27 +02:00
|--------------------------------------------------------------------------
| Translation methods
|--------------------------------------------------------------------------
|
| Update this array to tell the package which methods it should look for
| when finding missing translations.
|
2022-01-25 14:07:34 +01:00
*/
2022-08-29 17:23:10 +02:00
2022-01-25 14:07:34 +01:00
'translation_methods' => ['trans', '__'],
/*
2022-08-11 12:34:27 +02:00
|--------------------------------------------------------------------------
| Scan paths
|--------------------------------------------------------------------------
|
| Update this array to tell the package which directories to scan when
| looking for missing translations.
|
2022-01-25 14:07:34 +01:00
*/
2022-08-29 17:23:10 +02:00
2022-01-25 14:07:34 +01:00
'scan_paths' => [
2022-07-27 14:33:56 +02:00
resource_path() . '/views/front',
resource_path() . '/views/layouts/frontend',
2022-01-25 14:07:34 +01:00
],
/*
2022-08-11 12:34:27 +02:00
|--------------------------------------------------------------------------
| UI URL
|--------------------------------------------------------------------------
|
| Define the URL used to access the language management too.
|
2022-01-25 14:07:34 +01:00
*/
2022-08-29 17:23:10 +02:00
2022-01-25 14:07:34 +01:00
'ui_url' => 'bo/languages',
/*
2022-08-11 12:34:27 +02:00
|--------------------------------------------------------------------------
| Database settings
|--------------------------------------------------------------------------
|
| Define the settings for the database driver here.
|
2022-01-25 14:07:34 +01:00
*/
2022-08-29 17:23:10 +02:00
2022-01-25 14:07:34 +01:00
'database' => [
'connection' => '',
'languages_table' => 'languages',
'translations_table' => 'translations',
],
];