X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e2fed14ab87832996794e45b12e97f9ae5ef939a..64eec2a5d0ea39f61de5fe7f6265ea1718dbfe59:/app/helpers/application_helper.rb 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