bool matches(Locale other) { return languageCode == other.languageCode && (countryCode == null || countryCode == other.countryCode); }