diff --git a/locales.thor b/locales.thor index 655c51d99..d791f0958 100644 --- a/locales.thor +++ b/locales.thor @@ -109,6 +109,11 @@ class Locales < Thor puts CheckLocales.orphan_pluralizations.join(', ') end + desc 'orphan_locales', 'Returns locales that do not have a pluralization file' + def orphan_locales + puts CheckLocales.orphan_locales.join(', ') + end + private desc 'complete_locales', 'List complete locales' diff --git a/rails/test/lib/check_locales.rb b/rails/test/lib/check_locales.rb index e63f30eda..ee1809f09 100644 --- a/rails/test/lib/check_locales.rb +++ b/rails/test/lib/check_locales.rb @@ -31,5 +31,11 @@ def self.list_pluralizations def self.orphan_pluralizations return self.list_pluralizations.difference(self.list_locales) end + + # Returns locales that do not have a pluralization file + def self.orphan_locales + return self.list_locales.difference(self.list_pluralizations) + end + end