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