Skip to content

Latest commit

 

History

History
124 lines (81 loc) · 5.25 KB

changelog.md

File metadata and controls

124 lines (81 loc) · 5.25 KB

Version History

v. 6.0.1

  • Fix issue when trying to fetch a translation with a country based locale #264

v. 6.0

  • Translated fillable properties should only be defined in the translation model.
    • To update from version 5, move all the fillable properties belonging to a translation to the corresponding translation models.
  • Added deleteTranslations() method for conveniently deleting translations

v. 5.6.1

  • Added support for Lumen without Facades #259
  • Added support for Model accessors #257
  • Updated code style and added styleci to enforce it

v. 5.6

  • Added scope notTranslatedIn() #235

v. 5.5.1

  • Fixed a bug in locale fallback on toArray()

v. 5.5

  • Added Laravel 5.2 support
  • Dropped Laravel 5.0 support
  • Added scope whereTranslationLike() #183
  • Fire 'updated' event when saving translations. #190
  • setAttribute() returns the model itself, which is now the default in eloquent. #201

v. 5.4

  • Added compatibility with custom primary key #174

v. 5.3

  • Added whereTranslation() scope #168

v. 5.2

  • Added option to override default locale #158
  • Added default value in translatedIn() scope #148
  • Added new scope withTranslation() (including tests) to decrease the number of mysql calls made.
  • Added documentation about scopes.

v. 5.1.2

v. 5.1.1

  • Fixed compatibility with Lumen #121
  • Fixed making an attribute on a translatable model hidden does not hide it #133

v. 5.1

  • Added mutator/accessor translations using the format $country->{'name:de'} thanks to @barryvdh
  • Added documentation in readme file

v. 5.0.1

  • Applied PSR-2 code style.

v. 5.0

  • Laravel 5 ready
  • Added configuration option for returning fallback translations

v. 4.5

  • Added scope to list translated attributes in the current locale.
  • Force fire "saved" event when the original model is not saved, but the translation is #85

v. 4.4

  • 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, now null is returned.
  • Translated attributes now shown when converting toArray() or toJson().
  • Fixed bug: fill() created empty translations even when translated attributes were not fillable.
  • Added option to make translated attributes always fillable.

v. 4.3

  • 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.

v. 4.2

  • Fallback locale now is taken from app.fallback_locale config key.

v. 4.1.1

  • Fixed issue with saving translations, caused by the update of the laravel core.

v. 4.1

  • Added fallback to default locale if translations is missing.
  • Added travis environment for laravel 4.2.

v. 4.0

  • Removed syntax $model->en->name because conflicts may happen if the model has a property named en. See #18.
  • Added method hasTranslation($locale). See #19.

v. 3.0

  • Fixed bug #7. Model's Translations were deleted when the model delete failed.

v. 2.0

  • Translatable is now a trait and can be used as add-on to your models.
  • 100% code coverage

v. 1.0

  • Initial version
  • Translatable is a class extending Eloquent
  • 96% code coverage