* Returns the canonical form of a locale name - lowercase with `_` replaced with `-`.
(locale: string)
| 181 | * Returns the canonical form of a locale name - lowercase with `_` replaced with `-`. |
| 182 | */ |
| 183 | function normalizeLocale(locale: string): string { |
| 184 | return locale.toLowerCase().replace(/_/g, '-'); |
| 185 | } |
no test coverage detected