Laravel Language

screenshot of Laravel Language
laravel

Laravel Language

Language switcher package for Laravel

Overview

The Language Switcher package for Laravel allows users to easily switch app locale on Laravel projects. Once installed, the app locale changes by passing routes through the SetLanguage middleware. It provides features like automatic app locale change based on user browser settings, built-in language flags, helper functions for APIs, and support for Carbon and Date packages.

Features

  • Automatic Locale Change: Change app locale based on user browser configuration.
  • Language Flags: Built-in flags for easy implementation.
  • Get Language Name: Retrieve language name from language codes.
  • Short or Long Language Codes: Option to choose between short (e.g., 'en') or long (e.g., 'en-GB') language codes.
  • Store Locale on Users Table: Save locale on users' table for each user.
  • Language Restriction: Restrict users to set only supported languages.
  • Helper Functions: Provides helper functions for clean and simple APIs.
  • Support for Carbon and Date: Compatibility with Carbon and Date packages.
laravel
Laravel

Laravel is a powerful and elegant PHP framework that provides developers with a comprehensive set of tools and features to build robust web applications. It follows the Model-View-Controller (MVC) architectural pattern, offering a clean and organized structure for writing efficient and maintainable code.