MCPcopy Create free account
hub / github.com/MMadmer/EpicAssetsNotifyBot / normalizeLocaleFromAny

Method normalizeLocaleFromAny

internal/model/normalize.go:202–208  ·  view source on GitHub ↗
(value any)

Source from the content-addressed store, hash-verified

200}
201
202func (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.
211func (n Normalizer) NormalizeLocale(locale string) string {

Callers 3

NormalizeChannelsMethod · 0.95
NormalizeGuildConfigsMethod · 0.95
NormalizeUserProfilesMethod · 0.95

Calls 1

NormalizeLocaleMethod · 0.95

Tested by

no test coverage detected