keevitaja / linguist Goto Github PK
View Code? Open in Web Editor NEWEasy multilingual urls and redirection support for the Laravel framework
License: MIT License
Easy multilingual urls and redirection support for the Laravel framework
License: MIT License
after publishing config i noticed if you modify the locales array the values are ignored and it's still pulling from the vendor/../config
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.
Hi,
the plugin does not seem to work with url()->previous() or on FormRequest Redirects.
You can try be creating a controller for a form that makes use of a FormRequest (https://laravel.com/docs/5.6/validation#form-request-validation) and triggering an error in your rule-set. The following redirect will lead the user to a non-prefixed url.
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/.....
I'm curious if it is somehow possible, it would so cool to have it like de.myapp.com or fr.myapp.com or for default english just myapp.com
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.
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
is there any way for the root to redirect to the default domain?
for example, if access to mydomain.com redirects me to mydomain.com/en by default, if my default is en
on case it is fr
redirect to mydomain.com/fr
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.