yiisoft/translator
Yii Translator provides a clean abstraction for message translation in PHP apps, with support for multiple message categories, locales, and fallback logic. Integrates with Yii components to load, format, and return translated strings consistently across your project.
null to empty string in SimpleMessageFormatter
(@arogachev)IdMessageReader that returns ID as message and doesn't support getting all messages at once (@vjik)NullMessageFormatter that returns message as is (@vjik)IntlMessageFormatter that utilizes PHP intl extension message formatting capabilities (@vjik)$defaultCategory to Translator constructor (@vjik)TranslatorInterface::addCategorySources() variadic, and remove
TranslatorInterface::addCategorySource() method (@vjik)TranslatorInterface rename method withCategory() to withDefaultCategory() (@vjik)en_US (@vjik)Stringable type support for $id argument in Translator::translate() (@xepozz)en_US as default locale for translator (@vjik)MissingTranslationCategoryEvent once per category (@vjik)SimpleMessageFormatter from yiisoft/translator-formatter-simple package (@DAGpro, @vjik)SimpleMessageFormatter (@arogachev)yiisoft/files of version ^2.0 (@vjik)yiisoft/definitions in configuration (@vjik)How can I help you explore Laravel packages today?