Tweak i18n-tasks configuration and remove its spec
Remove i18n's spec for now, we haven't reached the point where it's needed.
This commit is contained in:
parent
4e1e47192d
commit
fcd1fb9357
|
@ -3,7 +3,7 @@
|
||||||
# The "main" locale.
|
# The "main" locale.
|
||||||
base_locale: bg
|
base_locale: bg
|
||||||
## All available locales are inferred from the data by default. Alternatively, specify them explicitly:
|
## 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.
|
## Reporting locale, default: en. Available: en, ru.
|
||||||
# internal_locale: en
|
# internal_locale: en
|
||||||
|
|
||||||
|
@ -15,6 +15,8 @@ data:
|
||||||
|
|
||||||
# Locale files or `File.find` patterns where translations are read from:
|
# Locale files or `File.find` patterns where translations are read from:
|
||||||
read:
|
read:
|
||||||
|
- config/locales/%{locale}.yml
|
||||||
|
- config/locales/*.%{locale}.yml
|
||||||
## Default:
|
## Default:
|
||||||
# - config/locales/%{locale}.yml
|
# - config/locales/%{locale}.yml
|
||||||
## More files:
|
## More files:
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in New Issue