All notable changes to laravel-translatable
will be documented in this file
- Revert return value change when column value is
null
by @vencelkatai in #474
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.9.2...6.9.3
- Improve
setAttribute
to handle array list as value for translation by @alipadron in #469
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.9.1...6.9.2
- Fix attribute mutators by @vencelkatai in #470
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.9.0...6.9.1
- PHP 8.4 deprecates implicitly nullable parameter types. by @selfsimilar in #458
- Add .idea to .gitignore, PHP CS Fixer to dev dependencies, and rename PHP CS Fixer config by @alipadron in #466
- Allow configuration for handling null and empty strings in translations (Fixes #456) by @alipadron in #465
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.8.0...6.9.0
- Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 by @dependabot in #453
- Added operand for json scopes by @rcerljenko in #454
- @rcerljenko made their first contribution in #454
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.7.1...6.8.0
- fix: PHPDoc block in Translatable facade by @kyryl-bogach in #448
- Bump dependabot/fetch-metadata from 1.6.0 to 2.1.0 by @dependabot in #446
- @kyryl-bogach made their first contribution in #448
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.7.0...6.7.1
- Add method comment to Facade for IDE autocompletion by @Muetze42 in #438
- Docs: add type declarations
array $translatable
by @fahrim in #441 - [FEAT] add ability for filtering a column's locale or multiple locale… by @AbdelrahmanBl in #447
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.6.2...6.7.0
- Fix toArray when using accessors on translatable attributes by @vencelkatai in #437
- @vencelkatai made their first contribution in #437
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.6.1...6.6.2
- fix: allow raw searchable umlauts by @Muetze42 in #436
- @Muetze42 made their first contribution in #436
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.6.0...6.6.1
- Add laravel 11 support by @mokhosh in #434
- @mokhosh made their first contribution in #434
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.5.5...6.6.0
- Revert "Keep null value" by @mabdullahsari in #428
- @mabdullahsari made their first contribution in #428
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.5.4...6.5.5
- Bump actions/checkout from 3 to 4 by @dependabot in #413
- Keep the number of translations even with null values by @sdebacker in #427
- Bump stefanzweifel/git-auto-commit-action from 4 to 5 by @dependabot in #418
- @sdebacker made their first contribution in #427
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.5.3...6.5.4
- Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 by @dependabot in #398
- handle new attribute mutator 💥 by @messi89 in #402
- @messi89 made their first contribution in #402
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.5.2...6.5.3
- Bump dependabot/fetch-metadata from 1.4.0 to 1.5.1 by @dependabot in #394
- Convert static methods to scopes by @gdebrauwer in #396
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.5.1...6.5.2
- Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 by @dependabot in #389
- Add getFallbackLocale method by @gdebrauwer in #391
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.5.0...6.5.1
- update customize-the-toarray-method.md by @moham96 in #387
- Add macro for
$this->translations()
in factories by @bram-pkg in #382
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.4.0...6.5.0
- Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 by @dependabot in #376
- Fix badge with
tests
status inREADME.md
by @gomzyakov in #377 - Update README.md by @alirezasalehizadeh in #381
- Enable fallback locale on a per model basis by @yoeriboven in #380
- @gomzyakov made their first contribution in #377
- @alirezasalehizadeh made their first contribution in #381
- @yoeriboven made their first contribution in #380
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.3.0...6.4.0
- Laravel 10.x support by @erikn69 in #374
- @erikn69 made their first contribution in #374
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.2.0...6.3.0
- Add Dependabot Automation by @patinthehat in #366
- Add PHP 8.2 Support by @patinthehat in #367
- Bump actions/checkout from 2 to 3 by @dependabot in #368
- Added whereLocale and whereLocales methods by @ahmetbarut in #370
- @dependabot made their first contribution in #368
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.1.0...6.2.0
- PHPUnit to Pest Converter by @freekmurze in #335
- Fix typo in "Getting and setting translations" by @sami-cha in #346
- Fix typo in advanced usage docs directory name by @greatislander in #347
- Fixed example for forgetAllTranslations() method. by @odeland in #348
- added locales method by @ahmetbarut in #361
- @sami-cha made their first contribution in #346
- @greatislander made their first contribution in #347
- @odeland made their first contribution in #348
- @ahmetbarut made their first contribution in #361
Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.0.0...6.1.0
- improved fallback customisations
- modernized code base
- drop support for Laravel 8
- support Laravel 9
- solve the string value issue in filterTranslations method (#300)
- specify locales in get translations method (#299)
- fix return types of getTranslation (#286)
- require PHP 8+
- convert syntax to PHP 8
- drop support for PHP 7.x
- drop support for Laravel 6.x
- implement
spatie/laravel-package-tools
- add support for PHP 8.0 (#241)
- drop support for Laravel 5.8 (#241)
- revert #235
- use string casting for translatable columns (#235)
- add replaceTranslations method (#231)
- rename
withLocale
tousingLocale
- elegant syntax update (#229)
- add support for Laravel 8 (#226)
- make possible to set multiple translations on mutator model field with array (#216)
- fix
forgetTranslation
&forgetAllTranslations
on fields with mutator (#205)
- Lumen fix (#201)
- add support for Laravel 7
- open up for non-model objects (#186)
- add third param to translate method (#177)
- make compatible with Laravel 6
- re-added the
translatable.fallback_local
config which overruleapp.fallback_local
(see #170)
- improve dependencies
- allow false and true values in translations
- fix service provider error
- drop support for Laravel 5.7 and below
- drop support for PHP 7.1 and below
app.fallback_local
will now be used (see #148)
- add support for Laravel 5.8
- add
hasTranslation
- allow 0 to be used as a translation value
- allow
getTranslations
to return other things than strings
- fix regarding empty locales
- added
translations
accessor - dropped support for PHP 7.0
- add support for Laravel 5.7
- made it possible to get all translations in one go
- better handling of
null
values
- add support for L5.6
- make locale handling more flexible
- fix for using translations within translations
- fix event
key
attribute - fix support for mutators
- added support for setting a translation directly through the property
- added support for Laravel 5.5, dropped support for all older versions
- rename config file from
laravel-translatable
totranslatable
- add
forgetAllTranslations
- improve support for fallback locale
- improve compatibility for Laravel 5.4
- add compatibility for Laravel 5.4
- made
isTranslatableAttribute
public
- add L5.3 compatibility
- added support for a fallback locale
- initial release