Skip to content

Commit

Permalink
reverting to translation choices that are live
Browse files Browse the repository at this point in the history
  • Loading branch information
eld120 committed Dec 13, 2023
1 parent f913d1e commit ea4c8da
Showing 1 changed file with 6 additions and 23 deletions.
29 changes: 6 additions & 23 deletions spec/helpers/localization_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
choices = [
["English", "en"],
["Nederlands (Dutch)", "nl"],
["Norsk Bokmål (Norwegian Bokmål)", "nb"],
["Español (Spanish)", "es"]
["Norwegian (Bokmål)", "nb"]
]
expect(language_choices).to eq(choices)
end
Expand All @@ -22,8 +21,7 @@
choices = [
["English (Engels)", "en"],
["Nederlands", "nl"],
["Norsk Bokmål (Noors)", "nb"],
["Español (Spaans)", "es"]
["Noors (Bokmål)", "nb"]
]
expect(language_choices).to eq(choices)
end
Expand All @@ -34,28 +32,13 @@
it "returns with norwegian included" do
I18n.with_locale(:nb) do
choices = [
["English (Engelsk)", "en"],
["Nederlands (Nederlandsk)", "nl"],
["Norsk Bokmål", "nb"],
["Español (Spansk)", "es"]
]
expect(language_choices).to eq(choices)
end
end
end

context "in Spanish" do
it "returns with spanish included" do
I18n.with_locale(:es) do
choices = [
["English (Inglés)", "en"],
["Nederlands (Holandés)", "nl"],
["Norsk Bokmål (Noruego)", "nb"],
["Español", "es"]
["Engelsk", "en"],
["Nederlands (nederlandsk)", "nl"],
["norsk (bokmål)", "nb"]
]
expect(language_choices).to eq(choices)
end
end
end
end
end
end

0 comments on commit ea4c8da

Please sign in to comment.