1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-18 12:30:35 +01:00

Fix locale

This commit is contained in:
Thomas Zilio 2019-09-03 16:56:50 +02:00
parent f5eae49e0a
commit 2d15bafe65

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