15 lines
344 B
PHP
15 lines
344 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Esun\MultiLocaleTranslation\Api;
|
|
|
|
interface TranslationProviderInterface
|
|
{
|
|
/**
|
|
* @param array<string, array{value:string,is_html:bool}> $fields
|
|
* @return array<string, string>
|
|
*/
|
|
public function translate(array $fields, string $sourceLanguage, string $targetLanguage): array;
|
|
}
|