MCPcopy Create free account
hub / github.com/adobe/react-spectrum / getChannelName

Function getChannelName

packages/react-stately/src/color/Color.ts:122–126  ·  view source on GitHub ↗
(channel: ColorChannel, locale: string)

Source from the content-addressed store, hash-verified

120 }
121
122 getChannelName(channel: ColorChannel, locale: string) {
123 let strings =
124 LocalizedStringDictionary.getGlobalDictionaryForPackage('@react-stately/color') || dictionary;
125 return strings.getStringForLocale(channel, locale);
126 }
127
128 abstract getColorSpace(): ColorSpace;
129

Callers

nothing calls this directly

Calls 2

getStringForLocaleMethod · 0.45

Tested by

no test coverage detected