Normalizer keeps incoming state consistent with the current runtime rules.
| 7 | |
| 8 | // Normalizer keeps incoming state consistent with the current runtime rules. |
| 9 | type Normalizer struct { |
| 10 | baseLocale string |
| 11 | locales map[string]string |
| 12 | } |
| 13 | |
| 14 | func NewNormalizer(baseLocale string, availableLocales map[string]string) Normalizer { |
| 15 | cloned := make(map[string]string, len(availableLocales)) |
nothing calls this directly
no outgoing calls
no test coverage detected