Releases: yiisoft/translator
Releases · yiisoft/translator
Version 3.0.0
2.2.1
Version 2.2.0
Version 2.1.1
- Bug #93: Throw exceptions on empty and not passed parameters, cast
null
to empty string inSimpleMessageFormatter
(@arogachev)
Version 2.1.0
Version 2.0.0
- New #75: Add
NullMessageFormatter
that returns message as is (@vjik) - New #78: Add
IntlMessageFormatter
that utilizes PHP intl extension message formatting capabilities (@vjik) - New #82: Add parameter
$defaultCategory
toTranslator
constructor (@vjik) - Chg #81: Make category parameter in
TranslatorInterface::addCategorySources()
variadic, and remove
TranslatorInterface::addCategorySource()
method (@vjik) - Chg #84: In
TranslatorInterface
rename methodwithCategory()
towithDefaultCategory()
(@vjik) - Chg #87: Fix package configuration, remove default category source, change default locale to
en_US
(@vjik) - Chg #90: Simplified category sources config (@rustamwin)
- Enh #69: Raise minimum PHP version to 8.0 (@xepozz, @vjik)
- Enh #70: Add
Stringable
type support for$id
argument inTranslator::translate()
(@xepozz) - Enh #72, #75: Format messages when missing translation category (@vjik)
- Enh #73: Set
en_US
as default locale for translator (@vjik) - Enh #74: Dispatch
MissingTranslationCategoryEvent
once per category (@vjik) - Enh #76: Make message formatter in category source optional (@vjik)
Version 1.1.1
- Bug #67: Exclude number from "plural" formatted message, handle missing options' keys (@arogachev)