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

Function updateLocale

packages/@react-spectrum/s2/stories/utils.tsx:182–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180 );
181
182 let updateLocale = locale => {
183 setLocale(locale);
184 let pref = preferences.find(p => p.locale === locale);
185 if (pref) {
186 setCalendar(pref.ordering.split(' ')[0]);
187 }
188 };
189 return (
190 <div
191 className={style({display: 'flex', flexDirection: 'column', gap: 16, alignItems: 'center'})}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected