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