Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
bcd32a88
Commit
bcd32a88
authored
Aug 24, 2021
by
Dominik Hebeler
Browse files
Setting Laravel Locale correctly
parent
ff8d7da0
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Providers/AppServiceProvider.php
View file @
bcd32a88
...
...
@@ -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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment