Weave 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

Translatable Laravel Package

terranet/translatable

A Laravel package for adding multilingual attributes to Eloquent models. Store translations per locale, retrieve values with automatic fallback, and manage translated fields without duplicating your schema—useful for building translatable applications quickly.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Localization roadmap sequencing. Whether multi-language content ships as a phase-1 requirement or a phase-2 enhancement. This package's shape (translation rows attached to existing models rather than duplicated tables or parallel site builds) tells you the cheapest path is retrofitting translations onto current Eloquent models — no content migration, no second schema.
  • Build vs. buy vs. borrow. The realistic verdict for a 2-star, 0-dependent, last-released-2019 package is borrow the pattern, buy nothing. Use it as a reference design for a translations table with a polymorphic relation and per-locale accessors; treat the code itself as a liability.
  • Schema decision: JSON columns vs. normalized translation tables. This package commits to the normalized-table model (one row per model/locale/field), which buys per-field fallback logic, partial translation coverage, and clean editorial workflows. The alternative (spatie/laravel-translatable-style JSON columns) is simpler to query but worse for "which fields are still untranslated in fr?" reporting. This is a real product decision about editor UX and QA, not just a technical one.
  • Admin/editor experience scope. The package is coupled to Admin Architect, implying a form-builder-driven translation UI. That informs whether you need in-admin editing (build), a spreadsheet round-trip (buy a TMS), or developer-managed locale files (do nothing yet).
  • Roadmap risk flagging. Because there are zero dependents and no release since March 2019, adopting it creates a permanent fork obligation. That's a maintenance-cost line item to put in front of leadership before the localization epic is estimated, not after.
  • Framework-upgrade planning. A 2019-era Laravel package is effectively pinned to Laravel 5.7/5.8-era conventions. If your app is on Laravel 10/11, this is a non-starter and the decision collapses to "pick a maintained alternative."

When to Consider This Package

Consider it only under narrow conditions:

  • You are already running Admin Architect on a legacy Laravel 5.x application and need translation support with minimal integration work.
  • You need a reference implementation to copy the data model and accessor API from — read the source, write your own trait, don't take the dependency.
  • You are prototyping an internal, non-customer-facing tool where abandonment risk is acceptable and the app's lifespan is measured in months.

Look elsewhere — decisively — when any of the following is true:

  • Laravel 9/10/11+. No release since 2019; expect incompatibility with modern framework versions, PHP 8.x, and current testing/CI expectations.
  • You need community validation or a security posture. 2 stars, 0 dependents, and no recent commits mean no downstream bug-surfacing, no CVE attention, and no one else to ask when it breaks.
  • Customer-facing multilingual content at scale. Use spatie/laravel-translatable (JSON columns, huge adoption), astrotomic/laravel-translatable (normalized tables with fallback locale support), or novius/laravel-translatable depending on your schema preference. Pair with mcamara/laravel-localization for route/locale handling.
  • Editorial workflow is the actual bottleneck. If translators are non-technical and content volume is high, the buy decision is a TMS (Crowdin, Lokalise, Phrase) with an API sync — no Eloquent package solves translation operations.
  • You need a vendor relationship. MIT license means no support contract, no SLA, no roadmap influence. If procurement or legal requires a maintainer commitment, this fails.

The low opportunity score (19.92) is consistent with this read: the problem is real and recurring, but this package is not the vehicle — the localization space is crowded with maintained, well-adopted alternatives.

How to Pitch It (Stakeholders)

One-liner: A small, MIT-licensed Laravel package that adds per-locale translations to existing Eloquent models via a normalized translations table — useful as a design reference, not as a dependency.

To executives: Localization will come up on the roadmap, and this package is the kind of thing an engineer might propose to make it cheap. It genuinely does describe the cheapest architecture — attaching translations to models you already have instead of forking the site per language. But the package itself hasn't shipped since March 2019, has two GitHub stars and no projects depending on it. Adopting it means we own it forever. Recommendation: spend a short spike borrowing the pattern and standardizing on a maintained alternative; the cost of the spike is days, the cost of an abandoned dependency is unbounded.

To engineering: Treat it as documentation, not a library. The trait-plus-translations-table approach is sound and worth copying; the code is Laravel 5.x-era, untested against PHP 8, and has no downstream users to catch regressions. If you must take the dependency for a legacy Admin Architect app, pin the version and budget for a fork. Otherwise use spatie/laravel-translatable if JSON columns fit your query patterns, or astrotomic/laravel-translatable if you need per-field rows and locale fallbacks — both are actively maintained with real adoption.

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.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource