mcamara / laravel-localization

Easy localization for Laravel
MIT License
3.32k stars 507 forks source link

Is there any way to use country code in url? #866

Closed Rohit-laravel closed 1 year ago

Rohit-laravel commented 1 year ago

I want to use country code along with locale in my routes. e.g.: http://127.0.0.1:8000/ch-en/about, http://127.0.0.1:8000/ch-de/about

Is there any way to handle above case ?

Thanks

iwasherefirst2 commented 1 year ago

Sure, just add them to your laravellocalization.php and rename the language folders inside resource/lang/ accordingly