Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display language name or language key #2949

Merged
merged 7 commits into from
Oct 10, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix flaky spec
`I18n.available_locales=` does a little magic[1] and was causing some flakieness along the way, as the `:wl` locale persisted in future specs

Thanks for the heads up @javierm 👌

[1] https://www.rubydoc.info/github/svenfuchs/i18n/I18n%2FConfig:available_locales=
  • Loading branch information
voodoorai2000 committed Oct 9, 2018
commit 59b35156b1f488b0e81e4112dfa4613c897b51de
2 changes: 1 addition & 1 deletion spec/features/localization_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

before do
I18n.enforce_available_locales = false
I18n.available_locales << :wl
I18n.available_locales = default_locales + [:wl]
I18n.locale = :wl
end

Expand Down