X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4028f4cdb91f616bc774dc9b9fa8c7183eb1f6dd..e01a0e71240db23301354fbc93a11d1aa790248d:/lib/locale.rb diff --git a/lib/locale.rb b/lib/locale.rb index bb09ae327..e10f06632 100644 --- a/lib/locale.rb +++ b/lib/locale.rb @@ -3,7 +3,7 @@ class Locale < I18n::Locale::Tag::Rfc4646 attr_reader :locales def initialize(tags) - super(tags.map { |tag| Locale.tag(tag) }) + super(tags.map { |tag| Locale.tag(tag) }).compact! end def candidates(preferred)