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

Product Decisions This Supports

  • Enables multi-language content support without database schema changes or additional tables
  • Accelerates internationalization roadmap by providing battle-tested translation handling
  • Eliminates need to build custom translation logic (build vs buy decision)
  • Ideal for content-heavy applications (CMS, e-commerce, news platforms) requiring localized attributes
  • Supports JSON-based storage for efficient querying and data integrity
  • Reduces technical debt by leveraging a mature, community-vetted solution

When to Consider This Package

  • Adopt when: using Laravel with MySQL 5.7+/MariaDB 10.2.3+, needing simple JSON-based translations for specific model attributes, moderate translation volume, and no requirement for complex translation workflows
  • Look elsewhere when: needing translation management UIs, workflow approvals, or high-volume translation processing (e.g., millions of records where normalized tables may be more performant), or when database lacks JSON support (though package has workarounds)

How to Pitch It (Stakeholders)

Executives: "This package allows us to launch multi-language features in weeks instead of months, reducing engineering costs and accelerating global market entry. It's a proven, open-source solution with 2,400+ GitHub stars and active maintenance, eliminating the need to build and maintain custom translation logic."

Engineering: "Integrates via a single trait with minimal configuration, stores translations in JSON columns (no extra tables), and provides built-in query scopes for locale-based searches. Backed by Spatie's comprehensive documentation and testing, it ensures reliability while reducing development time and potential bugs in internationalization logic."

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