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

Function localeMatches

packages/dev/optimize-locales-plugin/LocalesPlugin.js:97–102  ·  view source on GitHub ↗
(localeToMatch, includedLocale)

Source from the content-addressed store, hash-verified

95module.exports = plugin;
96
97function localeMatches(localeToMatch, includedLocale) {
98 return (
99 localeToMatch.language === includedLocale.language &&
100 (!includedLocale.region || localeToMatch.region === includedLocale.region)
101 );
102}

Callers 1

handlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected