X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e2fed14ab87832996794e45b12e97f9ae5ef939a..eefc0b5a0d3ace4f75adb0fd9974fae8162b192a:/app/helpers/application_helper.rb?ds=inline diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index e0c299ca5..000677646 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -87,4 +87,12 @@ module ApplicationHelper end end end + + def dir + if dir = params[:dir] + dir == "rtl" ? "rtl" : "ltr" + else + I18n.t("html.dir") + end + end end