public static function transFlowText($key) { $str = trans("texts.{$key}"); if (!in_array(App::getLocale(), ['de', 'fr'])) { $str = strtolower($str); } return $str; }