# mcamara/laravel-localization

Easy localization for Laravel

Repository: https://github.com/mcamara/laravel-localization
Canonical: https://ross.abutalabs.com/products/laravel-localization
Language: PHP
License: MIT
License Family: permissive
Topics: laravel-localization, laravel, laravel-package, php, language-selector
Last push: 2026-08-24T08:10:17+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 4756, "days_push": 9, "days_rel": 9, "gap_med": 58.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3559, forks 511 (observed 2026-08-28T04:08:09.773488+00:00)

## What it is
A Laravel package that adds easy internationalization (i18n) support, including locale detection from the browser, smart redirects, and routes defined once for multiple languages. It provides helpers like a language selector and supports translatable routes, caching, and hiding the default locale in URLs.

## Use cases
- serve a laravel app in multiple languages
- detect user language from browser headers in laravel
- define localized routes once for all locales
- add a language switcher to a laravel site
- hide the default locale prefix from urls
- redirect users to their saved locale

## When to choose
- you have an existing Laravel app using this package and need compatibility updates
- you need dynamic per-request localized routes and don't rely on route:cache
- you want a mature, widely-used Laravel localization package with battle-tested helpers

## When to avoid
- you are starting a new Laravel project and want route caching support out of the box
- you need statically registered localized routes
- your project is not built on Laravel or PHP

## Facets
- artifact type: library
- maturity: maintenance
- function: internationalization, routing, middleware, templating
- domain: web-development, backend
- platform: php, self-hosted
- tags: laravel-package, i18n, locale-detection, translated-routes, language-switcher, localization, php, web-server

## Member repositories
- mcamara/laravel-localization (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:09.773488+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-29T18:34:14.014344+00:00, confidence not recorded.
  - readme: https://github.com/mcamara/laravel-localization (fetched 2026-08-28T04:08:09.773488+00:00, sha ef2b92b9d35d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
