From 47b3f7b1cb5ce184acc68d2792ea4457a785d914 Mon Sep 17 00:00:00 2001 From: force Date: Fri, 27 Mar 2020 03:47:47 +0430 Subject: [PATCH] Update isRTL helper --- src/js/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/helpers.js b/src/js/helpers.js index 6bf14ea..5ee28ef 100644 --- a/src/js/helpers.js +++ b/src/js/helpers.js @@ -1,6 +1,6 @@ export const isRTL = () => { const $html = document.querySelector('html') - return $html.getAttribute('lang') === 'ar' || $html.getAttribute('lang') === 'he' + return ['ar', 'he', 'fa'].includes($html.getAttribute('lang')) } export const isMobile = (width = '768px') => {