# Astrotomic/laravel-translatable

A Laravel package for multilingual models

Repository: https://github.com/Astrotomic/laravel-translatable
Canonical: https://ross.abutalabs.com/products/astrotomic-laravel-translatable
Homepage: https://docs.astrotomic.info/laravel-translatable/
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, translation, eloquent, database, language, php, package, multilingual, multilanguage, laravel-translatable, multilingual-models, translated-attributes, treeware, hacktoberfest
Last push: 2026-08-14T20:50:11+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 74, longevity 100
- inputs: {"age_days": 2634, "days_push": 19, "days_rel": 19, "gap_med": 140, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1422, forks 174 (observed 2026-08-28T04:04:41.133803+00:00)

## What it is
A Laravel package that adds multilingual support to Eloquent models by storing translations in a separate database table. It transparently fetches and saves translated attributes alongside the model, with fallback locale support and validation rule helpers.

## Use cases
- store translations of eloquent models in the database
- build a multilingual laravel application with translated model attributes
- retrieve a model's title in the current or a specific locale
- sort and query models by their translated fields
- migrate existing single-language columns to a translation table
- validate translated form fields with locale-aware rules

## When to choose
- you use Laravel/Eloquent and need database-backed translations for model attributes
- you want translations saved and fetched automatically with the parent model
- you need fallback locales, locale helpers, and translation-aware validation out of the box

## When to avoid
- you only need to translate static UI strings (use Laravel's built-in localization files)
- you are not using Laravel or Eloquent
- you need full-page or full-entity content translation via external services

## Facets
- artifact type: library
- maturity: active
- function: orm, internationalization, database
- domain: web-development, databases
- platform: php
- tags: eloquent, multilingual-models, translations, laravel-package, fallback-locale, localization, laravel

## Member repositories
- Astrotomic/laravel-translatable (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:41.133803+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:37:40.496243+00:00, confidence not recorded.
  - readme: https://github.com/Astrotomic/laravel-translatable (fetched 2026-08-28T04:04:41.133803+00:00, sha e37a4cfbd646)
  - homepage: https://docs.astrotomic.info/laravel-translatable/ (fetched 2026-08-29T11:49:48.559106+00:00, sha 2c9d54a9faaa)
  - site_page: https://docs.astrotomic.info/laravel-translatable/changelog (fetched 2026-08-29T11:49:48.561688+00:00, sha 9af5d096cdd2)
  - site_page: https://docs.astrotomic.info/laravel-translatable/faq (fetched 2026-08-29T11:49:48.563682+00:00, sha 22d8aac12a69)
  - site_page: https://docs.astrotomic.info/laravel-translatable/installation (fetched 2026-08-29T11:49:48.565343+00:00, sha 5b39c3b4d56a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
