MCPcopy Create free account
hub / github.com/error311/FileRise / normalizeDefaultLanguage

Method normalizeDefaultLanguage

src/FileRise/Domain/AdminModel.php:133–138  ·  view source on GitHub ↗
($lang)

Source from the content-addressed store, hash-verified

131 }
132
133 private static function normalizeDefaultLanguage($lang): string
134 {
135 $lang = trim((string)$lang);
136 $allowed = ['en', 'es', 'fr', 'de', 'pl', 'ru', 'ja', 'zh-CN'];
137 return in_array($lang, $allowed, true) ? $lang : 'en';
138 }
139
140 public static function buildPublicSubset(array $config): array
141 {

Callers 2

buildPublicSubsetMethod · 0.95
getConfigMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected