Merge branch 'translation' of https://github.com/LinkStackOrg/LinkStack into translation

This commit is contained in:
Frank 2023-06-13 17:22:52 +02:00
commit c91d71c222
1 changed files with 9 additions and 1 deletions

View File

@ -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'),
/*
|--------------------------------------------------------------------------