25 lines
610 B
PHP
25 lines
610 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Esun\MultiLocaleTranslation\Model\Config\Source;
|
|
|
|
use Magento\Framework\Data\OptionSourceInterface;
|
|
|
|
class DeepLApiUrl implements OptionSourceInterface
|
|
{
|
|
public function toOptionArray(): array
|
|
{
|
|
return [
|
|
[
|
|
'value' => 'https://api-free.deepl.com/v2/translate',
|
|
'label' => 'https://api-free.deepl.com/v2/translate',
|
|
],
|
|
[
|
|
'value' => 'https://api.deepl.com/v2/translate',
|
|
'label' => 'https://api.deepl.com/v2/translate',
|
|
],
|
|
];
|
|
}
|
|
}
|