peppe / laravel-route-translator
A package to translate Laravel routes
v1.0.0
2025-07-03 18:36 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^10.0|^11.0|^12.0
This package is not auto-updated.
Last update: 2025-07-03 19:05:13 UTC
README
A simple Laravel package to translate route URLs using the project's own language files.
Overview
This package allows you to translate route paths based on language files located in your Laravel application's resources/lang/{locale}/routes.php
. It does not include any translations itself, so you can fully customize your route translations within your project.
Features
- Translate route URLs dynamically according to the current locale.
- Compatible with Laravel 10, 11, and 12.
- Lightweight and minimal — no bundled translations or views.
- Easily extendable.
Installation
Require the package via Composer:
composer require peppe/laravel-route-translator