Componette

Componette

orisai

orisai / translation-contracts

Interface for translator and translatable messages

download-cloud-line composer require orisai/translation-contracts

Orisai
Translation Contracts

Interface for translator and translatable messages

📄 Check out our documentation.

💸 If you like Orisai, please make a donation. Thank you!

use Orisai\TranslationContracts\Translator;
assert($translator instanceof Translator);
$translator->translate('message.id', ['parameter' => 'value']);  // string (translated message)

// Or

use function Orisai\TranslationContracts\t;
t('message.id', ['parameter' => 'value']); // string (translated message)

No release at this moment. Try to create first one.

Componette Componette felix@nette.org