diff --git a/config/i18n-tasks.yml b/config/i18n-tasks.yml index 1d9a5af..664d78c 100644 --- a/config/i18n-tasks.yml +++ b/config/i18n-tasks.yml @@ -3,7 +3,7 @@ # The "main" locale. base_locale: bg ## All available locales are inferred from the data by default. Alternatively, specify them explicitly: -# locales: [es, fr] +locales: [bg, en] ## Reporting locale, default: en. Available: en, ru. # internal_locale: en @@ -15,6 +15,8 @@ data: # Locale files or `File.find` patterns where translations are read from: read: + - config/locales/%{locale}.yml + - config/locales/*.%{locale}.yml ## Default: # - config/locales/%{locale}.yml ## More files: diff --git a/spec/models/i18n_spec.rb b/spec/models/i18n_spec.rb deleted file mode 100644 index 71211b8..0000000 --- a/spec/models/i18n_spec.rb +++ /dev/null @@ -1,17 +0,0 @@ -require 'i18n/tasks' - -describe 'I18n' do - let(:i18n) { I18n::Tasks::BaseTask.new } - let(:missing_keys) { i18n.missing_keys } - let(:unused_keys) { i18n.unused_keys } - - it 'does not have missing keys' do - expect(missing_keys).to be_empty, - "Missing #{missing_keys.leaves.count} i18n keys, run `i18n-tasks missing' to show them" - end - - it 'does not have unused keys' do - expect(unused_keys).to be_empty, - "#{unused_keys.leaves.count} unused i18n keys, run `i18n-tasks unused' to show them" - end -end