]> git.openstreetmap.org Git - rails.git/commit
Improve locale selection algorithm
authorTom Hughes <tom@compton.nu>
Thu, 4 Jun 2020 16:23:16 +0000 (17:23 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 4 Jun 2020 16:33:11 +0000 (17:33 +0100)
commitbf22c69286f97f72625c79d64e7c1a5cb6e95710
tree34516919be70ea70879f5969d7f6e89cce2c188a
parentb16388d099abb02d4a1936855b0150b73a7c9ce2
Improve locale selection algorithm

Don't include locales which only have rails translations in
the candidates, and ensure that user specified options take
priority over less specific variants of earlier choices.
.rubocop_todo.yml
lib/locale.rb
test/integration/user_creation_test.rb
test/lib/locale_test.rb