Fix locale
This commit is contained in:
parent
f5eae49e0a
commit
2d15bafe65
|
@ -81,8 +81,10 @@ class Translator extends Util\Singleton
|
|||
$this->translator->setLocale($locale);
|
||||
$this->locale = $locale;
|
||||
|
||||
setlocale(LC_TIME, $locale);
|
||||
Carbon::setLocale($locale);
|
||||
$reduced = explode('_', $locale)[0];
|
||||
|
||||
setlocale(LC_TIME, $reduced);
|
||||
Carbon::setLocale($reduced);
|
||||
|
||||
self::setFormatter($locale, $formatter);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue