X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4028f4cdb91f616bc774dc9b9fa8c7183eb1f6dd..c162c065c6f6db5dc584599f5639b296b627a165:/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)