(value)
| 17175 | } |
| 17176 | |
| 17177 | function parseExplicitLocale(value) { |
| 17178 | const normalized = normalizeLocale(value); |
| 17179 | const raw = String(value ?? '').trim().toLowerCase(); |
| 17180 | if (!raw || !['zh', 'zh-cn', 'zh-hans', 'en', 'en-us'].includes(raw)) { |
| 17181 | return null; |
| 17182 | } |
| 17183 | return normalized; |
| 17184 | } |
| 17185 | |
| 17186 | function normalizeCommandName(value) { |
| 17187 | const normalized = String(value ?? '').trim().toLowerCase(); |
no test coverage detected