[openstreetmap/openstreetmap-website] Non-English error message? (#1702)

mmd notifications at github.com
Sun Apr 29 20:03:59 UTC 2018

Yes, I thought so.

Since we want API calls to return messages in English only, could we add something like set_locale_api to the application controller, and set I18n.locale to en_GB:en or en_US. Next would be adding a call to set_locale_api to node_controller.rb in `def update`.

I've noticed that  `before_action :set_locale` is used in several places, like notes_controller.rb, but I'm suspecting that may not be a good option for node_controller.rb et. al, as we're again making messages dependent on the user's language settings even for API calls.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180429/6b85953c/attachment.html>

More information about the rails-dev mailing list