PHPackages                             mikehaertl/translatable - 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. mikehaertl/translatable

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

mikehaertl/translatable
=======================

translatable is a Yii extension to transparently translate ActiveRecord attributes.

1.1.0(12y ago)327.0k↓100%5[2 issues](https://github.com/mikehaertl/translatable/issues)3MITPHPPHP &gt;=5.0.0

Since Jun 25Pushed 12y ago2 watchersCompare

[ Source](https://github.com/mikehaertl/translatable)[ Packagist](https://packagist.org/packages/mikehaertl/translatable)[ Docs](https://github.com/mikehaertl/translatable)[ RSS](/packages/mikehaertl-translatable/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (5)Used By (3)

Translatable
============

[](#translatable)

Transparent attribute translation for ActiveRecords.

Features:

- Maps attributes from a translation table into the main record
- Provides optional fallback language or fallback columns if no translation is found
- Automatically loads the application language by default
- Loads other language(s) on demand

Here's a basic example:

```
