Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.84 KB

README.md

File metadata and controls

39 lines (31 loc) · 1.84 KB

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)