- Laravel 5 ready
- Drops support for laravel 4.0.
- Compatible with laravel 4.1 and laravel 4.2.
- External config file.
- Fallback issue fixed.
- Added translated and translatedIn scopes.
- Changed behavior: getting non existing translations with
getTranslation()
used to return objects, nownull
is returned. - Translated attributes now shown when converting
toArray()
ortoJson()
. - Fixed bug: fill() created empty translations even when translated attributes were not fillable.
- Added option to make translated attributes always fillable.
- The
Translation
class suffix default can be overridden in the app config. See 7ecc0a75d - The
app.fallback_locale
setting can be overridden in each model separately. See #33 - Fallback translation is not returned if it is not defined.
- Fallback locale now is taken from
app.fallback_locale
config key.
- Fixed issue with saving translations, caused by the update of the laravel core.
- Added fallback to default locale if translations is missing.
- Added travis environment for laravel 4.2.
- Removed syntax
$model->en->name
because conflicts may happen if the model has a property nameden
. See #18. - Added method
hasTranslation($locale)
. See #19.
- Fixed bug #7. Model's Translations were deleted when the model delete failed.
- Translatable is now a trait and can be used as add-on to your models.
- 100% code coverage
- Initial version
- Translatable is a class extending Eloquent
- 96% code coverage