- Enh #131: Throw
InvalidArgumentException
when missed "one" plural key (@vjik) - Bug #132: Fix incorrect locale usage when category source is not exist and specified fallback locale (@vjik)
- Chg #92: Implement fluent interface into
TranslatorInterface
: methodsaddCategorySources()
,setLocale()
,withDefaultCategory()
andwithLocale()
returnsstatic
(@vjik) - Chg #111: Adapt configuration group names to Yii conventions (@vjik)
- Enh #99: In
SimpleMessageFormatter
add support of messages where used parameters with plural modifier that contain non-supported keys (@vjik) - Bug #110: Changed default value for locale to BCP-47 compatible (@darkdef)
- New #94: Add
getMessages()
method toCategorySource
(@xepozz) - New #95: Add
write()
method toCategorySource
(@xepozz)
- Bug #93: Throw exceptions on empty and not passed parameters, cast
null
to empty string inSimpleMessageFormatter
(@arogachev)
- New #91: Add
IdMessageReader
that returns ID as message and doesn't support getting all messages at once (@vjik)
- 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 removeTranslatorInterface::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)
- Bug #67: Exclude number from "plural" formatted message, handle missing options' keys (@arogachev)
- Chg #25: Move
SimpleMessageFormatter
fromyiisoft/translator-formatter-simple
package (@DAGpro, @vjik) - Enh #63: Add "plural" support to
SimpleMessageFormatter
(@arogachev)
- Enh #59: Add support for
yiisoft/files
of version^2.0
(@vjik)
- Chg #54: Use definitions from
yiisoft/definitions
in configuration (@vjik)
- Initial release.