fixup! Detect locales automatically
This commit is contained in:
parent
2c28cf95c8
commit
ad77d029d3
1 changed files with 7 additions and 1 deletions
|
@ -16,6 +16,10 @@ use Symfony\Component\Translation\Loader\PoFileLoader;
|
||||||
*/
|
*/
|
||||||
class LocaleManager
|
class LocaleManager
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Path to locales.
|
||||||
|
*/
|
||||||
private const PATH = __DIR__ . '/../i18n/';
|
private const PATH = __DIR__ . '/../i18n/';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -84,7 +88,9 @@ class LocaleManager
|
||||||
*/
|
*/
|
||||||
public function getSupportedLocales()
|
public function getSupportedLocales()
|
||||||
{
|
{
|
||||||
$return = [];
|
$return = [
|
||||||
|
new Locale('en_US')
|
||||||
|
];
|
||||||
|
|
||||||
$finder = new Finder();
|
$finder = new Finder();
|
||||||
$finder->depth(0)
|
$finder->depth(0)
|
||||||
|
|
Loading…
Reference in a new issue