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

Laravel Translatable Routes Laravel Package

codedor/laravel-translatable-routes

codedor/laravel-translatable-routes adds multilingual, SEO-friendly URLs to Laravel. Define translated route segments per locale, generate locale-aware links, and switch languages without losing the current page. Ideal for localized apps that need clean, human-readable URLs in every language.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Localized URL strategy (SEO vs. simplicity): The package makes translated route segments a first-class routing concern, so you can decide between translated slugs per locale (/fr/a-propos), single canonical slug with a locale prefix (/fr/about), or locale-in-session-only. This is a marketing/SEO-visible decision, not just an engineering one — hreflang, sitemap generation, and paid-search landing pages all key off it.
  • Market expansion sequencing: Per-market launch readiness becomes a routing config artifact rather than a code change. Adding locale de-CH to a roadmap milestone is a config + content task, which lets you commit to launch dates for new markets with far less engineering lead time.
  • Build vs. buy for i18n plumbing: This sits in the "buy/adopt" bucket for the routing layer of internationalization. Building translated route resolution in-house (route registration, URL generation in the current locale, middleware-based locale detection, 301s from old slugs) is 2–6 weeks of work plus permanent maintenance — and it is not differentiated for your product. Reserve in-house effort for translation workflow, content governance, and locale-aware search relevance, which are differentiated.
  • SEO migration risk management: Whether the package supports redirects from previously indexed URLs determines if a market relaunch is a low-risk content change or a traffic-loss event requiring a redirect map, monitoring, and a rollback plan. That changes the risk tier of the roadmap item.
  • CMS/admin scope: If URLs are translatable, editorial tooling must expose a slug field per locale with validation and uniqueness rules. That's a real scoping input for any admin or headless-CMS work on the roadmap — budget for it early or you get a late-stage surprise.
  • Platform upgrade cadence: The v2.1.0 release adds PHP 8.5 and Laravel 13 support. That is a direct input to "can we take the Laravel 13 upgrade next year without forking a dependency?" — i.e., it protects the platform-upgrade roadmap item rather than creating new product scope.

When to Consider This Package

Adopt when most of the following hold:

  • You serve, or plan to serve, more than one language market and want localized URLs rather than cookie/session-only locale switching. If you're single-locale with no near-term international plans, this is premature — use your framework's built-in localization and move on.
  • You are on a supported Laravel version. v2.1.0 explicitly covers PHP 8.5 / Laravel 13 alongside earlier supported versions. Confirm your exact Laravel minor is in the package's test matrix before committing; "supports Laravel 13" does not automatically mean every 12.x patch is regression-tested.
  • Your route surface is well-understood and enumerated. Package value scales with a stable route table (marketing pages, catalog categories, docs). If your URLs are largely dynamic/user-generated, most of the benefit evaporates.
  • You have a translation owner. Routes without translated content produce awkward half-localized URLs. Adoption should be paired with a content commitment, or the feature ships as a liability.
  • SEO matters enough to justify per-locale slug curation. If nobody will maintain translated slugs, prefer a canonical-slug-with-locale-prefix approach.
  • The dependency is actively maintained. v2.1.0 is a maintenance/compatibility release — dependency bumps and framework-support additions, no new features or deprecations. That's a healthy signal (someone is keeping the lights on and tracking upstream), but it also tells you the feature surface is stable, so don't expect the package to grow into adjacent problems.

Look elsewhere or reconsider when:

  • You need deep locale negotiation (geo-IP routing, Accept-Language weighting, per-domain or per-subdomain locale strategies with shared route definitions). The package handles translated segments; it is not a full localization platform. You'll pair it with separate middleware and possibly a domain-routing layer.
  • You need locale-aware content fallback semantics as a first-class model concern — that's a content-modeling package's job, not a routing package's.
  • You can't tolerate a small-maintainer dependency in a revenue-critical path. Check contributor concentration and release cadence against your supply-chain policy. A single-maintainer package in the URL layer of your storefront is a real continuity risk worth documenting, with a fork-or-vendor contingency.
  • You're on an older Laravel/PHP combination outside the tested matrix, especially if the major version you'd need is no longer receiving compatibility updates.

How to Pitch It (Stakeholders)

For executives: International expansion is on our roadmap, and localized URLs are table stakes for search visibility in each new market — they affect organic ranking, ad landing-page quality, and conversion. Rather than build and maintain that routing logic ourselves, this package gives us translated URLs and locale-aware link generation as a dependency. Adopting it converts "enter a new market" from an engineering project into a content-and-configuration project, which shortens time-to-launch and lowers cost per market. The new v2.1.0 release adds support for PHP 8.5 and Laravel 13, meaning the dependency will remain compatible with our planned platform upgrade instead of becoming an obstacle to it. The decision requested is not a large one: approve adoption for the routing layer of internationalization, and fund the translated-slug content work that makes it pay off.

For engineering: This is a small, focused package that handles translated route segments, locale-aware URL generation, and the middleware glue around current-locale resolution — the plumbing you'd otherwise write and then own forever. v2.1.0 is a pure compatibility/maintenance release (PHP 8.5 and Laravel 13 support, plus CI dependency bumps); no breaking changes, no deprecations, no new API surface, so the upgrade from v2.0.0 should be a version-bump-and-test. The trade-offs to weigh: it's a small-maintainer dependency in a path that affects SEO and customer-facing URLs, so we should pin versions, cover localized URL generation with our own tests, and note a vendor/fork contingency. It also does not solve locale negotiation or content fallback — we'll still own geo/IP and Accept-Language middleware, and the editorial tooling needs a per-locale slug field with uniqueness validation. Recommend a scoped spike on one market's route table to validate the redirect story for already-indexed URLs before we commit to a full rollout.

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