PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 14
  1. 3.2.1 06 Dec 2025
    Release notes

    Full changelog

    Open source →
    Release notes
    • Enh #153: Add PHP 8.5 support (@vjik)
    Open source →
  2. 3.2.0 28 Sep 2025
    Release notes
    • New #149: Add InMemoryMessageSource (@vjik)
    • Chg #150: Change PHP constraint in composer.json to 8.0 - 8.4 (@vjik)
    Open source →
    Release notes
    • New #149: Add InMemoryMessageSource (@vjik)
    • Chg #150: Change PHP constraint in composer.json to 8.0 - 8.4 (@vjik)
    Open source →
  3. 3.1.0 26 Dec 2024
    Release notes
    • 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)
    • Bug #148: Fix the nullable parameter declarations for compatibility with PHP 8.4 (@martio)
    Open source →
    Release notes
    • 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)
    • Bug #148: Fix the nullable parameter declarations for compatibility with PHP 8.4 (@martio)
    Open source →
  4. 3.0.0 17 Feb 2023
    Release notes
    • Chg #92: Implement fluent interface into TranslatorInterface: methods addCategorySources(), setLocale(),
      withDefaultCategory() and withLocale() returns static (@vjik)
    • Chg #111: Adapt configuration group names to Yii conventions (@vjik)
    Open source →
    Release notes
    • Chg #92: Implement fluent interface into TranslatorInterface: methods addCategorySources(), setLocale(), withDefaultCategory() and withLocale() returns static (@vjik)
    • Chg #111: Adapt configuration group names to Yii conventions (@vjik)
    Open source →
  5. 2.2.1 07 Jan 2023
    Release notes
    • 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)
    Open source →
    Release notes
    • 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)
    Open source →
  6. 2.2.0 28 Nov 2022
    Release notes
    • New #94: Add getMessages() method to CategorySource (@xepozz)
    • New #95: Add write() method to CategorySource (@xepozz)
    Open source →
    Release notes
    • New #94: Add getMessages() method to CategorySource (@xepozz)
    • New #95: Add write() method to CategorySource (@xepozz)
    Open source →
  7. 2.1.1 23 Nov 2022
    Release notes
    • Bug #93: Throw exceptions on empty and not passed parameters, cast null to empty string in SimpleMessageFormatter
      (@arogachev)
    Open source →
    Release notes
    • Bug #93: Throw exceptions on empty and not passed parameters, cast null to empty string in SimpleMessageFormatter (@arogachev)
    Open source →
  8. 2.1.0 15 Nov 2022
    Release notes
    • New #91: Add IdMessageReader that returns ID as message and doesn't support getting all messages at once (@vjik)
    Open source →
    Release notes
    • New #91: Add IdMessageReader that returns ID as message and doesn't support getting all messages at once (@vjik)
    Open source →
  9. 2.0.0 08 Nov 2022
    Release notes
    • 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 to Translator constructor (@vjik)
    • Chg #81: Make category parameter in TranslatorInterface::addCategorySources() variadic, and remove
      TranslatorInterface::addCategorySource() method (@vjik)
    • Chg #84: In TranslatorInterface rename method withCategory() to withDefaultCategory() (@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 in Translator::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)
    Open source →
    Release notes
    • 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 to Translator constructor (@vjik)
    • Chg #81: Make category parameter in TranslatorInterface::addCategorySources() variadic, and remove TranslatorInterface::addCategorySource() method (@vjik)
    • Chg #84: In TranslatorInterface rename method withCategory() to withDefaultCategory() (@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 in Translator::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)
    Open source →
  10. 1.1.1 09 Sep 2022
    Release notes
    • Bug #67: Exclude number from "plural" formatted message, handle missing options' keys (@arogachev)
    Open source →
    Release notes
    • Bug #67: Exclude number from "plural" formatted message, handle missing options' keys (@arogachev)
    Open source →
  11. 1.1.0 07 Sep 2022
    Release notes
    • Chg #25: Move SimpleMessageFormatter from yiisoft/translator-formatter-simple package (@DAGpro, @vjik)
    • Enh #63: Add "plural" support to SimpleMessageFormatter (@arogachev)
    Open source →
  12. 1.0.2 26 Jul 2022
    Release notes
    • Enh #59: Add support for yiisoft/files of version ^2.0 (@vjik)
    Open source →
  13. 1.0.1 30 Aug 2021
    Release notes
    • Chg #54: Use definitions from yiisoft/definitions in configuration (@vjik)
    Open source →
  14. 1.0.0 13 May 2021
    Release notes
    • Initial release.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive