Fix locale

This commit is contained in:
Thomas Zilio 2019-09-03 16:56:50 +02:00
parent f5eae49e0a
commit 2d15bafe65
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}