Commit bcd32a88 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Setting Laravel Locale correctly

parent ff8d7da0
......@@ -29,10 +29,13 @@ class AppServiceProvider extends ServiceProvider
}
if (stripos($host, "metager.org") !== false) {
\App::setLocale('en');
LaravelLocalization::setLocale('en');
}else if (stripos($host, "metager.es") !== false) {
\App::setLocale('es');
LaravelLocalization::setLocale('es');
}else{
\App::setLocale('de');
LaravelLocalization::setLocale();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment