Changeset View
Changeset View
Standalone View
Standalone View
src/app/Http/Controllers/ContentController.php
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | class ContentController extends Controller | ||||
* @return array List of two-letter language codes | * @return array List of two-letter language codes | ||||
*/ | */ | ||||
public static function locales(): array | public static function locales(): array | ||||
{ | { | ||||
if ($locales = \env('APP_LOCALES')) { | if ($locales = \env('APP_LOCALES')) { | ||||
return preg_split('/\s*,\s*/', strtolower(trim($locales))); | return preg_split('/\s*,\s*/', strtolower(trim($locales))); | ||||
} | } | ||||
return ['en', 'de']; | return ['en', 'de', 'fr']; | ||||
} | } | ||||
/** | /** | ||||
* Get menu definition from the theme | * Get menu definition from the theme | ||||
* | * | ||||
* @return array | * @return array | ||||
*/ | */ | ||||
public static function menu(): array | public static function menu(): array | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |