Skip to content

Commit

Permalink
Adds missing language name translations
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoorai2000 committed Oct 4, 2018
1 parent e41b2a3 commit 78ef46d
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 1 deletion.
4 changes: 4 additions & 0 deletions config/locales/en/i18n.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
en:
i18n:
language:
name: "English"
4 changes: 4 additions & 0 deletions config/locales/es/i18n.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
es:
i18n:
language:
name: "Español"
4 changes: 4 additions & 0 deletions config/locales/fr/i18n.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fr:
i18n:
language:
name: "Français"
4 changes: 4 additions & 0 deletions config/locales/he/i18n.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
he:
i18n:
language:
name: "עברית"
4 changes: 4 additions & 0 deletions config/locales/nl/i18n.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
nl:
i18n:
language:
name: "Nederlands"
4 changes: 4 additions & 0 deletions config/locales/pt-BR/i18n.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pt-BR:
i18n:
language:
name: "Português brasileiro"
4 changes: 4 additions & 0 deletions config/locales/val/i18n.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
val:
i18n:
language:
name: "Valencià"
3 changes: 2 additions & 1 deletion spec/features/localization_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
context "Missing language names" do

let!(:default_enforce) { I18n.enforce_available_locales }
let!(:default_locales) { I18n.available_locales }
let!(:default_locales) { I18n.available_locales.dup }

before do
I18n.enforce_available_locales = false
Expand All @@ -63,6 +63,7 @@
after do
I18n.enforce_available_locales = default_enforce
I18n.available_locales = default_locales
I18n.locale = I18n.default_locale
end

scenario 'Available locales without language translation display locale key' do
Expand Down

0 comments on commit 78ef46d

Please sign in to comment.