(value any)
| 200 | } |
| 201 | |
| 202 | func (n Normalizer) normalizeLocaleFromAny(value any) string { |
| 203 | raw, ok := value.(string) |
| 204 | if !ok { |
| 205 | return "" |
| 206 | } |
| 207 | return n.NormalizeLocale(raw) |
| 208 | } |
| 209 | |
| 210 | // NormalizeLocale returns the canonical locale code or an empty string. |
| 211 | func (n Normalizer) NormalizeLocale(locale string) string { |
no test coverage detected