19 lines
429 B
PHP
19 lines
429 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Esun\MultiLocaleTranslation\Model\Config\Source;
|
|
|
|
use Magento\Framework\Data\OptionSourceInterface;
|
|
|
|
class TranslationProvider implements OptionSourceInterface
|
|
{
|
|
public function toOptionArray(): array
|
|
{
|
|
return [
|
|
['value' => 'deepl', 'label' => __('DeepL')],
|
|
['value' => 'google', 'label' => __('Google Cloud Translation V3')],
|
|
];
|
|
}
|
|
}
|