laravel-language | Language switcher package for Laravel | Internationalization library

 by   akaunting PHP Version: 1.0.22 License: MIT

kandi X-RAY | laravel-language Summary

kandi X-RAY | laravel-language Summary

laravel-language is a PHP library typically used in Utilities, Internationalization, Laravel applications. laravel-language has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Language switcher package for Laravel
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              laravel-language has a low active ecosystem.
              It has 210 star(s) with 41 fork(s). There are 13 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 2 open issues and 22 have been closed. On average issues are closed in 95 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of laravel-language is 1.0.22

            kandi-Quality Quality

              laravel-language has no bugs reported.

            kandi-Security Security

              laravel-language has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              laravel-language is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              laravel-language releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed laravel-language and discovered the below as its top functions. This is intended to give you an instant insight into laravel-language implemented functionality, and help decide if they suit your requirements.
            • Set locale .
            • Generate language names
            • Get language codes
            • Register the language services .
            • Handle the request .
            • Register the user table .
            • Remove locale .
            • Returns the facade accessor .
            • Register the language configuration .
            Get all kandi verified functions for this library.

            laravel-language Key Features

            No Key Features are available at this moment for laravel-language.

            laravel-language Examples and Code Snippets

            No Code Snippets are available at this moment for laravel-language.

            Community Discussions

            QUESTION

            Missing required parameter - routes with more than 2 parameters are not working with localization
            Asked 2021-Apr-22 at 06:25

            I've been struggling lately with this problem and I really need some help.

            So I implemented this tutorial: https://youtu.be/KqzGKg8IxE4 for adding localization to my project and it works well for routes that doesn't require another parameter besides the language. What I want to do is just keep the locale to the url as the first segment of the link, so it should follow this pattern:

            • example.com/en/shop
            • example.com/en/products/5/edit

            but the routes with more parameters shouldn't be influenced by this prefix.

            I have found more possible fixes for this, such as removing al the resource grouped routes and type them manually which would take forever, or override all the routes in order to use a parameter as a language switcher, for example 'example.com/shop?lang=en' and then implement an URL Generator macro, as answered in this question.

            Also, I tried added an optional parameter in the language-switcher component, straight in my blade file like so

            ...

            ANSWER

            Answered 2021-Apr-22 at 06:25

            You can get the current route parameters from the route object so something like:

            Source https://stackoverflow.com/questions/67207509

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install laravel-language

            Run the following command:.

            Support

            Pull requests are more than welcome. You must follow the PSR coding standards.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/akaunting/laravel-language.git

          • CLI

            gh repo clone akaunting/laravel-language

          • sshUrl

            git@github.com:akaunting/laravel-language.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Internationalization Libraries

            formatjs

            by formatjs

            react-i18next

            by i18next

            version

            by sebastianbergmann

            globalize

            by globalizejs

            angular-translate

            by angular-translate

            Try Top Libraries by akaunting

            akaunting

            by akauntingPHP

            laravel-firewall

            by akauntingPHP

            laravel-money

            by akauntingPHP

            firewall

            by akauntingPHP

            laravel-setting

            by akauntingPHP