{"repo":"akaunting/laravel-language","free":true,"listed":false,"github":"https://github.com/akaunting/laravel-language","clone":"git clone https://github.com/akaunting/laravel-language.git","description":"Language switcher package for Laravel","language":"PHP","stars":223,"topics":["php","laravel","language","locale","switcher","akaunting"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Language switcher package for Laravel This package allows switching locale easily on Laravel projects. It's so simple to use, once it's installed, your App locale will change only by passing routes into SetLanguage middleware. Version Compatibility Laravel PHP Package --------- ----------- --------- 5.8 7.2 - 7.4 ^2.0 6.x 7.2 - 8.0 ^2.0 7.x 7.2 - 8.0 ^2.0 8.x 7.3 - 8.1 ^2.0 9.x 8.0 - 8.2 ^2.0 10.x 8.1 - 8.3 ^2.0 11.x 8.2 - 8.4 ^2.0 12.x 8.2 - 8.5 ^2.0 Top features: - Change automatically app locale depending on user browser configuration - Language flags built-in for easy implementation - Get language name like 'English' or 'Español' from codes such as 'en' or 'es' - Option to choose short (en) or long (en-GB) language code - Store locale on users table - Restrict users to set languages you don't have translations - Helper functions for clean, simple and easy to read API - Supports Carbon and Date packages Getting Started 1. Install Run the following command: 2. Register (Optional - Laravel 5.5+ Auto-Discovery) Note : Laravel 5.5+ automatically discovers the package. Manual registration is only needed for older versions. For Laravel allowed() Returns an array with for all allowed languages of config. Example usage on blade: language()- flags() Returns an output with flags for all allowed languages of config. Output can be changed from folder language()- flag() Returns the flag of the current locale. Output can be changed from folder language()- names($codes = null) Get an arr","default_branch":null,"files":null,"tree":[],"storefront":"/r/akaunting","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/akaunting/laravel-language/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}