translate-laravel/config/translate.php

35 lines
1.1 KiB
PHP
Raw Permalink Normal View History

<?php declare(strict_types=1);
/**
* Copyright (c) 2024
* author: Leonid Nikitin - i@kor-elf.net
* web: https://git.kor-elf.net/kor-elf
* Initial version created on: 15.09.2024
* MIT license: https://git.kor-elf.net/kor-elf/translate-laravel/src/branch/main/LICENSE
*/
return [
/*
|--------------------------------------------------------------------------
| Default Translate Service
|--------------------------------------------------------------------------
|
| This option controls the default translate service that will be used by the
| framework. This connection is utilized if another isn't explicitly
| specified when running a translation operation inside the application.
|
*/
'default' => env('TRANSLATE_SERVICE', 'yandex'),
'services' => [
'yandex' => [
'driver' => '\korElf\TranslateLaravel\Translate\YandexDriver',
'config' => [
'folder_id' => env('TRANSLATE_YANDEX_FOLDER_ID'),
'authorized_key_path' => base_path(env('TRANSLATE_YANDEX_AUTHORIZED_KEY_PATH')),
],
],
],
];