Skip to content

JSON & YAML Messages for Yii

Translate your application using structured catalogs

Use a message source that stores translated messages in JSON or YAML files.

Unlike traditional message sources, like yii\i18n\PhpMessageSource or yii\i18n\DbMessageSource, a JSON/YAML message source let you share your translations with your frontend application, and even use nesting.

Quick start

Install the latest version of JSON & YAML Messages for Yii with Composer:

composer require cedx/yii2-json-messages

For detailed instructions, see the installation guide.