diff --git a/hbshelpers/isRTL.js b/hbshelpers/isRTL.js new file mode 100644 index 000000000..b33118d89 --- /dev/null +++ b/hbshelpers/isRTL.js @@ -0,0 +1,11 @@ +const checkRTL = require('../static/webpack/rtl'); + +/** + * Returns true if the given language is written from right to left (requires rtl css) + * + * @param {string} locale + * @returns {boolean} + */ +module.exports = function isRTL(locale) { + return checkRTL(locale); +} diff --git a/layouts/html.hbs b/layouts/html.hbs index 06802b255..c2ff37b75 100644 --- a/layouts/html.hbs +++ b/layouts/html.hbs @@ -144,7 +144,13 @@ - +
{{#if global_config.googleTagManagerId}} @@ -153,7 +159,7 @@ height="0" width="0" style="display:none;visibility:hidden"> {{/if}} -