orisai / translation-contracts

Interface for translator and translatable messages
Mozilla Public License 2.0
2 stars 0 forks source link
abstractions contracts decoupling i18n interfaces internationalization interoperability l10n localization orisai php standards translation

Orisai
Translation Contracts

Interface for translator and translatable messages

📄 Check out our documentation.

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

## ```php 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) ```