Set HTML dir attribute in RTL languages

This way properties flex layouts text direction will work properly.
This commit is contained in:
Javi Martín
2021-06-21 23:59:31 +02:00
parent a868a5ff35
commit d827768c07
4 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="<%= I18n.locale %>" data-current-user-id="<%= current_user&.id %>">
<html <%= "dir=rtl" if rtl? %> lang="<%= I18n.locale %>" data-current-user-id="<%= current_user&.id %>">
<head>
<%= render "layouts/common_head", default_title: setting["org_name"] %>
<%= render "layouts/tracking_data" %>