Implemented translation via Yandex service.
This commit is contained in:
34
config/translate.php
Normal file
34
config/translate.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?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')),
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
Reference in New Issue
Block a user