PHPackages                             2amigos/yii2-translateable-behavior - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. 2amigos/yii2-translateable-behavior

AbandonedArchivedYii2-extension[Localization &amp; i18n](/categories/localization)

2amigos/yii2-translateable-behavior
===================================

ActiveRecord attributes translations for Yii2.

1.1.1(7y ago)66124.5k↓23%28[1 issues](https://github.com/2amigos/yii2-translateable-behavior/issues)10BSD-3-ClausePHP

Since Apr 10Pushed 7y ago21 watchersCompare

[ Source](https://github.com/2amigos/yii2-translateable-behavior)[ Packagist](https://packagist.org/packages/2amigos/yii2-translateable-behavior)[ RSS](/packages/2amigos-yii2-translateable-behavior/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (9)Used By (10)

TranslateableBehavior for Yii2
==============================

[](#translateablebehavior-for-yii2)

This behavior has been inspired by the great work of Mikehaertl's [Translatable Behavior](https://github.com/mikehaertl/translatable) for Yii 1.\*.

It eases the translation of ActiveRecord's attributes as it maps theme from a translation table into the main record. It also automatically loads application language by default.

Sample of use:

```
