Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Translatable Laravel Package

spatie/laravel-translatable

Add multilingual fields to Eloquent models using a simple HasTranslations trait. Store translations as JSON on the model (no extra tables). Set/get translations per locale, switch app locale, fetch all translations, and even translate nested JSON keys via -> notation.

View on GitHub
Deep Wiki
Context7
6.13.0

What's Changed

  • Add Laravel 13 support
6.12.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.11.4...6.12.0

6.11.3

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.10.2...6.11.3

6.10.2
6.10.1

What's Changed

Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.10.0...6.10.1

6.10.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.9.3...6.10.0

6.9.3

What's Changed

Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.9.2...6.9.3

6.9.2

What's Changed

Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.9.1...6.9.2

6.9.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.8.0...6.9.0

6.8.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.7.1...6.8.0

6.7.1

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.7.0...6.7.1

6.7.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.6.2...6.7.0

6.6.2

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.6.1...6.6.2

6.6.1
6.5.4

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.5.3...6.5.4

6.5.3

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.5.2...6.5.3

6.5.2
6.5.1
6.5.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-translatable/compare/6.4.0...6.5.0

6.0.0
  • improved fallback customisations
  • modernized code base
  • drop support for Laravel 8
5.2.0
  • support Laravel 9
5.0.3
  • solve the string value issue in filterTranslations method (#300)
5.0.2
  • specify locales in get translations method (#299)
5.0.1
  • fix return types of getTranslation (#286)
5.0.0
  • 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
4.6.0
  • add support for PHP 8.0 (#241)
  • drop support for Laravel 5.8 (#241)
4.5.2
  • revert #235
4.5.1
  • use string casting for translatable columns (#235)
4.4.2
  • elegant syntax update (#229)
4.4.1
  • add support for Laravel 8 (#226)
4.4.0
  • make possible to set multiple translations on mutator model field with array (#216)
4.3.2
  • fix forgetTranslation & forgetAllTranslations on fields with mutator (#205)
4.3.1
  • Lumen fix (#201)
4.3.0
  • add support for Laravel 7
4.2.2
  • open up for non-model objects (#186)
4.2.1
  • add third param to translate method (#177)
4.2.0
  • make compatible with Laravel 6
4.1.4
4.1.3
  • improve dependencies
4.1.2
  • allow false and true values in translations
4.1.1
  • fix service provider error
4.1.0
  • drop support for Laravel 5.7 and below
  • drop support for PHP 7.1 and below
4.0.0
  • app.fallback_local will now be used (see #148)
3.1.3
  • add support for Laravel 5.8
3.1.2
  • add hasTranslation
3.1.1
  • allow 0 to be used as a translation value
3.1.0
  • allow getTranslations to return other things than strings
3.0.1
  • fix regarding empty locales
3.0.0
  • added translations accessor
  • dropped support for PHP 7.0
2.2.1
  • add support for Laravel 5.7
2.2.0
  • made it possible to get all translations in one go
2.1.5
  • better handling of null values
2.1.4
  • add support for L5.6
2.1.3
  • make locale handling more flexible
2.1.2
  • fix for using translations within translations
2.1.1
  • fix event key attribute
  • fix support for mutators
2.1.0
  • added support for setting a translation directly through the property
2.0.0
  • added support for Laravel 5.5, dropped support for all older versions
  • rename config file from laravel-translatable to translatable
1.3.0
  • add forgetAllTranslations
1.1.2
  • made isTranslatableAttribute public
1.1.1
  • add L5.3 compatibility
1.1.0
  • added support for a fallback locale
1.0.0
  • initial release
1.2.2
  • improve support for fallback locale
1.2.1
  • improve compatibility for Laravel 5.4
1.2.0
  • add compatibility for Laravel 5.4
4.5.0
  • add replaceTranslations method (#231)
4.4.3
  • rename withLocale to usingLocale
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport