lib/countries/translations.rb in countries-6.0.0 vs lib/countries/translations.rb in countries-7.0.0

- old
+ new

@@ -5,9 +5,9 @@ # # E.g. if a country has translations for +pt+, and the user looks up +pt-br+ fallback # to +pt+ to prevent from showing nil values class Translations < Hash def [](locale) - super(locale) || super(locale.to_s.sub(/-.*/, '')) + super || super(locale.to_s.sub(/-.*/, '')) end end end