Coder Social home page Coder Social logo

keevitaja / linguist Goto Github PK

View Code? Open in Web Editor NEW
191.0 10.0 15.0 45 KB

Easy multilingual urls and redirection support for the Laravel framework

License: MIT License

PHP 100.00%
linguist laravel php localization i18n multilingual estonia locales translation

linguist's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

linguist's Issues

Multiple locales not working

I've got some initial locales working, including 'en' and 'fr'.
But as soon as I add 'de', 'es' or 'it', they don't work and can't be found.

Assets problem

Hello,

Using Laravel 5.5, and Linguist ^2.1, when using asset to link a style sheet or a javascript file I get 404 and the URL becomes localhost:8000/ar/css/.....

Getting config variables

Took a look at your package and it looks interesting. But looking through sources I've found this code:

$config = include __DIR__.'/../../config/linguist.php';
$pattern = '/^\/('.implode('|', $config['locales']).')(?:\/|$)/';

in https://github.com/keevitaja/linguist/blob/master/src/Http/Kernel.php#L30

Shouldn't actually be:

$pattern = '/^\/('.implode('|', Config::get('linguist.locales').')(?:\/|$)/';

as you've already merged the configs in the service provider?

Just trying to prevent a future problem here, maybe I'm wrong.

Class 'Keevitaja\Linguist\UriFixer' not found

I installed the package
composer require keevitaja/linguist
and going with option 1
Add following line after the vendor autoloading to your projects public/index.php file.
(new Keevitaja\Linguist\UriFixer)->fixit();
Got
Class 'Keevitaja\Linguist\UriFixer' not found

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.