(lang: string)
| 138 | }); |
| 139 | |
| 140 | export function resolveLang(lang: string): SupportedLang | null { |
| 141 | const l = lang.trim().toLowerCase(); |
| 142 | if (supportedSet.has(l)) { |
| 143 | if (l in LANG_ALIASES) return LANG_ALIASES[l]!; |
| 144 | return l as SupportedLang; |
| 145 | } |
| 146 | return null; |
| 147 | } |
| 148 | |
| 149 | export function isSupportedLang(lang: string): boolean { |
| 150 | return supportedSet.has(lang.trim().toLowerCase()); |
no outgoing calls
no test coverage detected