Yii Framework 34k+
  • News
  • Guide
  • API
  • Wiki
  • Forum
  • Community
    • Places
    • Members
    • Hall of Fame
    • Badges
  • More
    • Learn
    • Books
    • Resources
    • Develop
    • Download Yii
    • Extensions
    • Report an Issue
    • Report a Security Issue
    • Contribute to Yii
    • Donate
    • About
    • Release Cycle
    • License
    • Team
    • Official Logos and Design
Login

i18n 1.2.0

Jun 4, 2023

New version of yiisoft/i18n package was released.

This version adds LocaleProvider and raises required major PHP version to 8.

Yii Translator DB Message Storage 1.0.0

May 9, 2023

First stable version of Yii Translator DB Message Storage was tagged.

This package provides the database storage for the yiisoft/translator.

It allows you to store messages in databases supported by yiisoft/db: MariaDB, MSSQL, MySQL, Oracle, PostgreSQL, and SQLite.

i18n 1.1.0

Nov 5, 2021

New version of yiisoft/i18n package was released.

This version adds support for keywords hours, colnumeric, and colcasefirst. These keywords are part of the ECMAScript 2022 Internationalization API Specification (ECMA-402 9th Edition), and supporting them allows for better cross-communication between PHP and JavaScript layers.

  • hours defines an hour cycle for the locale (i.e. h11, h12, h23, h24). For more information see the key/type definition for the Unicode Hour Cycle Identifier.
  • colnumeric and colcasefirst are both collation settings defined as part of the Unicode Locale Data Markup Language.

Translator 1.0.0 and related packages

May 13, 2021

First release of translator package was published. This package allows translating messages into several languages. It can work with both Yii-based applications and standalone PHP applications.

Translations in the code looks like the following:

// single translation
$messageIdentificator = 'submit';
echo $translator->translate($messageIdentificator);
// output: `Submit message`

Read more

i18n 1.0.0

Dec 25, 2020

Another Yii3 family package is released. This time it is yiisoft/i18n. The package provides common internationalization utilities and currently includes a Locale class. It stores locale information created from BCP 47 formatted string. Can parse locale string, modify locale parts, form locale string from parts, and derive fallback locale.

$locale = new \Yiisoft\I18n\Locale('es-CL');
echo $locale->language(); // es
echo $locale->region(); // CL

$locale = $locale->withLanguage('en');
echo $locale->asString(); // en-CL

echo $locale->fallbackLocale()->asString(); // en

The package has 100% code coverage and 100% mutation score.

Get notified of news as soon as they are available using our RSS Feed.

Years

  • 2026 (48)
  • 2025 (92)
  • 2024 (80)
  • 2023 (90)
  • 2022 (82)
  • 2021 (101)
  • 2020 (64)
  • 2019 (75)
  • 2018 (32)
  • 2017 (35)
  • 2016 (30)
  • 2015 (9)
  • 2014 (6)
  • 2013 (11)
  • 2012 (14)
  • 2011 (10)
  • 2010 (10)
  • 2009 (23)
  • 2008 (5)

Popular Tags

  • yii3 387
  • extensions 233
  • release 109
  • yii2 74
  • debug 30
  • view 28
  • html 25
  • auth client 23
  • bootstrap 21
  • redis 20
  • Yii 1.1
  • Guide
  • API
  • Wiki
  • Yii 2
  • Guide
  • API
  • Wiki
  • Yii3
  • Guide
  • API
  • Cookbook
  • Terms of service
  • License
  • Contact Us
  • Supported by
  • Your donations
  • JetBrains logo
  • © 2008 - 2026 Yii (Website Source Code)