← All projects

Localizater

by @elkebirmed

Archived 50

Laravel localization package for wrapping routes in multiple locale prefixes

About this project

Localizater [![Latest Version on Packagist][ico-version]][link-packagist] [![Total Downloads][ico-downloads]][link-downloads] Laravel package for wrapping routes in multiple locale prefixes. Installation Via Composer To detect and change the locale of the application based on the request automatically, you can add this middleware to your app/Http/Kernel: Configuration By default, the application locales are only going to be en and the default locale is not prefixed. If you want to prefix the default locale, please run the following command to publish the configuration file: After installing the package, Adding the middleware and publishing the configuration file. You need to edit the configuration file config/localizater.php in order to add more locales. Note The default locale is app.locale located at config/app.php file. Config: localizater.locales Add supported locales. It's recommended to write the locale value with its native language. Config: localizater.rtllocales Add RTL direction locales. Config: localizater.prefixdefault If this option is set to true, Default locale URL will be prefixed. Config: localizater.prefixdefaultname

From the project README on GitHub

Stars
50
Forks
3
License
MIT
Last push
18 Apr 2024

Add this badge to your README

Show that your project is listed on Made in Algeria.

Made in Algeria
[![Made in Algeria](https://www.madeinalgeria.dev/badge/localizater.svg)](https://www.madeinalgeria.dev/projects/localizater)

Related projects