Closed kedniko closed 2 years ago
Example
web.php Route::get(Lang::uri('products/glass'), fn() => view(....)->name(....);
Route::get(Lang::uri('products/glass'), fn() => view(....)->name(....);
lang/it/routes.php
return [ 'glass' => 'vetro', 'products' => 'prodotti', 'products/glass' => 'prodotti/bicchiere' ];
❌ Current result: 'prodotti/vetro' ✅ Expected result: 'prodotti/bicchiere'
'prodotti/vetro'
'prodotti/bicchiere'
This change allows me to define a translation for a specific route
Excellent! I'll remember to add a test for this tomorrow. Thanks!
Example
web.php
Route::get(Lang::uri('products/glass'), fn() => view(....)->name(....);
lang/it/routes.php
❌ Current result:
'prodotti/vetro'
✅ Expected result:'prodotti/bicchiere'
This change allows me to define a translation for a specific route