All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Support Laravel 11
- Support Laravel 10
- Different strategies to handle translations in their own way.
- Project structure.
- Move trait
Nevadskiy\Translatable\HasTranslations
toNevadskiy\Translatable\Strategies\SingleTable\HasTranslations
.
translate
andtranslateMany
methods on the model.- Archiving translations feature.
translations:remove-unused
command.
- Update uuid package.
- Possibility to disable auto-loading translations.
- Possibility to disable auto-saving translations.
- A bit refactoring.
- Documentation.
- Soft delete detection for inherited models.
- Ordering by multiple translations.
- Disabling migrations.
- Order by translatable.
- The
auto archiving translations
feature.
- Install UUID package.
- Feature to archived translations.
- Feature auto-archiving previous translations.
- Rename
TranslationNotFoundEvent
intoTranslationNotFound
. - Rename
TranslationSavedEvent
intoTranslationCreated
. - Make 'locale' field nullable.
- Laravel 8 support.
- Rename method
getDefaultAttribute
intogetDefaultTranslation
.
- Refactor tests.
- Fix case when JSON serializing makes additional DB calls for translations.
- Added tests for morph map.
- Added
getTranslationOrDefault
method.
- No longer need to publish default migration.
- No longer need to copy translatable attributes into the model's fillable array.
getTranslation
method now returns default value if translation is missing.getRawTranslation
now fires eventTranslationNotFound
.
- Fixed primary key in the translations table.
- Everything.