mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-02 12:17:22 +01:00
Update app.php
This commit is contained in:
parent
7b65013633
commit
ac210bdfb5
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
function locales($key, $default)
|
||||
{
|
||||
$value = env($key, $default);
|
||||
$array = explode(',', $value);
|
||||
$trimmedArray = array_map('trim', $array);
|
||||
return $trimmedArray;
|
||||
}
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
@ -11,7 +19,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'supported_locales' => env('LOCALES', ['de', 'es', 'pt', 'zh', 'ms']),
|
||||
'supported_locales' => locales('LOCALES', 'de, es, pt, zh, ms'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user