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

Function localeMatches

packages/dev/optimize-locales-plugin/LocalesLoader.js:32–37  ·  view source on GitHub ↗
(localeToMatch, includedLocale)

Source from the content-addressed store, hash-verified

30};
31
32function localeMatches(localeToMatch, includedLocale) {
33 return (
34 localeToMatch.language === includedLocale.language &&
35 (!includedLocale.region || localeToMatch.region === includedLocale.region)
36 );
37}

Callers 1

LocalesLoader.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected