]> git.openstreetmap.org Git - rails.git/commit
Use .with_locale for about page
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 15 Mar 2023 18:08:59 +0000 (18:08 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 22 Mar 2023 10:13:01 +0000 (10:13 +0000)
commita91afa0e78a5fa3e54aee38ec64c43fcea0b7abb
tree40e074aaedc3ee8c37ed1d1ec31ff5055258dde9
parent5d86e624b0153e28b91af6d353251144d017253d
Use .with_locale for about page

This simplifies the code, since we can avoid having to specify the
locale for every translation.

The test was added since I originally developed another approach,
but that caused exceptions on invalid locales.
app/views/site/_about_section.html.erb
app/views/site/about.html.erb
test/controllers/site_controller_test.rb