X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e2fed14ab87832996794e45b12e97f9ae5ef939a..5a2cfd6760f3610bfbc21909c6f4b10815a5910d:/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