yiisoft/translator
Yii Message Translator
3.2.1
615K downloads/mo
#4191 most downloaded on Packagist
yiisoft/translator
What this package is like to depend on
Last release 8 months ago
06 Dec 2025
Release timing varies
gaps range from 2 weeks to 1.9 years
Nearly every release is documented
notes for 14 of 14 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
14 releases · first in 2021
2 releases in the last 12 months
see the full history below
Release timeline
14 releases · May 2021 to Dec 2025
2022
2023
2024
2025
2026
Releases
latest 14-
3.2.106 Dec 2025 -
3.2.028 Sep 2025Release notes
Open source →- New #149: Add
InMemoryMessageSource(@vjik) - Chg #150: Change PHP constraint in
composer.jsonto8.0 - 8.4(@vjik)
- New #149: Add
-
3.1.026 Dec 2024Release notes
Open source →- Enh #131: Throw
InvalidArgumentExceptionwhen missed "one" plural key (@vjik) - Bug #132: Fix incorrect locale usage when category source is not exist and specified fallback locale (@vjik)
- Bug #148: Fix the nullable parameter declarations for compatibility with PHP 8.4 (@martio)
- Enh #131: Throw
-
3.0.017 Feb 2023Release notes
Open source →- Chg #92: Implement fluent interface into
TranslatorInterface: methodsaddCategorySources(),setLocale(),withDefaultCategory()andwithLocale()returnsstatic(@vjik) - Chg #111: Adapt configuration group names to Yii conventions (@vjik)
- Chg #92: Implement fluent interface into
-
2.2.107 Jan 2023Release notes
Open source →- Enh #99: In
SimpleMessageFormatteradd 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)
- Enh #99: In
-
2.2.028 Nov 2022Release notes
Open source →- New #94: Add
getMessages()method toCategorySource(@xepozz) - New #95: Add
write()method toCategorySource(@xepozz)
- New #94: Add
-
2.1.123 Nov 2022Release notes
Open source →- Bug #93: Throw exceptions on empty and not passed parameters, cast
nullto empty string inSimpleMessageFormatter
(@arogachev)
Release notes
Open source →- Bug #93: Throw exceptions on empty and not passed parameters, cast
nullto empty string inSimpleMessageFormatter(@arogachev)
- Bug #93: Throw exceptions on empty and not passed parameters, cast
-
2.1.015 Nov 2022Release notes
Open source →- New #91: Add
IdMessageReaderthat returns ID as message and doesn't support getting all messages at once (@vjik)
- New #91: Add
-
2.0.008 Nov 2022Release notes
Open source →- New #75: Add
NullMessageFormatterthat returns message as is (@vjik) - New #78: Add
IntlMessageFormatterthat utilizes PHP intl extension message formatting capabilities (@vjik) - New #82: Add parameter
$defaultCategorytoTranslatorconstructor (@vjik) - Chg #81: Make category parameter in
TranslatorInterface::addCategorySources()variadic, and remove
TranslatorInterface::addCategorySource()method (@vjik) - Chg #84: In
TranslatorInterfacerename 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
Stringabletype support for$idargument inTranslator::translate()(@xepozz) - Enh #72, #75: Format messages when missing translation category (@vjik)
- Enh #73: Set
en_USas default locale for translator (@vjik) - Enh #74: Dispatch
MissingTranslationCategoryEventonce per category (@vjik) - Enh #76: Make message formatter in category source optional (@vjik)
Release notes
Open source →- New #75: Add
NullMessageFormatterthat returns message as is (@vjik) - New #78: Add
IntlMessageFormatterthat utilizes PHP intl extension message formatting capabilities (@vjik) - New #82: Add parameter
$defaultCategorytoTranslatorconstructor (@vjik) - Chg #81: Make category parameter in
TranslatorInterface::addCategorySources()variadic, and removeTranslatorInterface::addCategorySource()method (@vjik) - Chg #84: In
TranslatorInterfacerename 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
Stringabletype support for$idargument inTranslator::translate()(@xepozz) - Enh #72, #75: Format messages when missing translation category (@vjik)
- Enh #73: Set
en_USas default locale for translator (@vjik) - Enh #74: Dispatch
MissingTranslationCategoryEventonce per category (@vjik) - Enh #76: Make message formatter in category source optional (@vjik)
- New #75: Add
-
1.1.109 Sep 2022Release notes
Open source →- Bug #67: Exclude number from "plural" formatted message, handle missing options' keys (@arogachev)
Release notes
Open source →- Bug #67: Exclude number from "plural" formatted message, handle missing options' keys (@arogachev)
-
1.1.007 Sep 2022Release notes
Open source →- Chg #25: Move
SimpleMessageFormatterfromyiisoft/translator-formatter-simplepackage (@DAGpro, @vjik) - Enh #63: Add "plural" support to
SimpleMessageFormatter(@arogachev)
- Chg #25: Move
-
1.0.226 Jul 2022 -
1.0.130 Aug 2021Release notes
Open source →- Chg #54: Use definitions from
yiisoft/definitionsin configuration (@vjik)
- Chg #54: Use definitions from
-
1.0.013 May 2021