From ad77d029d303c0f62ac22ff9c29227201827e377 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Thu, 28 May 2020 00:33:07 +0200 Subject: [PATCH] fixup! Detect locales automatically --- classes/LocaleManager.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/classes/LocaleManager.php b/classes/LocaleManager.php index ee2c4cf..df7661c 100644 --- a/classes/LocaleManager.php +++ b/classes/LocaleManager.php @@ -16,6 +16,10 @@ use Symfony\Component\Translation\Loader\PoFileLoader; */ class LocaleManager { + + /** + * Path to locales. + */ private const PATH = __DIR__ . '/../i18n/'; /** @@ -84,7 +88,9 @@ class LocaleManager */ public function getSupportedLocales() { - $return = []; + $return = [ + new Locale('en_US') + ]; $finder = new Finder(); $finder->depth(0)