Skip to content
Snippets Groups Projects
Commit d6698141 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

fix rtl detection, regression in PR #2039

parent 3221b93b
No related branches found
No related tags found
No related merge requests found
...@@ -101,7 +101,7 @@ exports.abide = function (options) { ...@@ -101,7 +101,7 @@ exports.abide = function (options) {
resp.local('lang', lang); resp.local('lang', lang);
// BIDI support, which direction does text flow? // BIDI support, which direction does text flow?
lang_dir = ((BIDI_RTL_LANGS.indexOf(lang) >= 0) || debug_lang == lang) ? 'rtl' : 'ltr'; lang_dir = ((BIDI_RTL_LANGS.indexOf(lang) >= 0) || debug_lang == lang.toLowerCase()) ? 'rtl' : 'ltr';
resp.local('lang_dir', lang_dir); resp.local('lang_dir', lang_dir);
req.lang = lang; req.lang = lang;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment