Download the PHP package webard/nova-language-switch without Composer
On this page you can find all versions of the php package webard/nova-language-switch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webard/nova-language-switch
More information about webard/nova-language-switch
Files in webard/nova-language-switch
Package nova-language-switch
Short Description A Laravel Nova package to switch language in your application
License MIT
Homepage https://github.com/webard/nova-language-switch
Informations about the package nova-language-switch
A Laravel Nova Tool to add language switcher to your application
Original package: https://github.com/badinansoft/nova-language-switch
This Nova tool lets you:
- Add a Language switcher to the header of the nova application.
- Handle Switch language and put the current locale to Laravel session to remember language from multiple browsers.
- Switch the direction of the application based on the RTL-supported application written in config.
-
Enable or disable showing language name
Requirements
php: >=8.0-
laravel/nova: ^4.0Note: This package dose't work with nova 3
Features
- Add multiple languages from the config.
- Remember set local based on cache no need to save in the database table
- Auto inject to the header of the application
- Just 4 steps to setup
Screenshot
|
|
|
Installation
You can install the nova tool in to a Laravel app that uses Nova via composer:
Next up, you must register the tool with Nova. This is typically done in the tools method of the NovaServiceProvider.
Next up, must you publish the config file with for add your languages:
This is the contents of the published config file:
Finally you should register middleware This is typically done in the $middlewareGroups property of the Http/Kernel in web group.
Credits
- Shahab Zebari
- All Contributors
License
The MIT License (MIT). Please see License File for more information.