We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c6ccf4 + 7eb3576 commit 9ddc9f5Copy full SHA for 9ddc9f5
lib/i18n/backend/simple.rb
@@ -44,7 +44,7 @@ def store_translations(locale, data, options = {})
44
def available_locales
45
init_translations unless initialized?
46
translations.inject([]) do |locales, (locale, data)|
47
- locales << locale unless (data.keys - [:i18n]).empty?
+ locales << locale unless data.size <= 1 && (data.empty? || data.has_key?(:i18n))
48
locales
49
end
50
0 commit comments