diff --git a/src/i18n/i18n-loader.js b/src/i18n/i18n-loader.js index 77b6de6..e145e89 100644 --- a/src/i18n/i18n-loader.js +++ b/src/i18n/i18n-loader.js @@ -169,7 +169,7 @@ const rtlLocales = ['ar', 'he', 'fa', 'ur']; const isRtl = locale => rtlLocales.includes(locale); const handleRtl = () => { - if (process.env.ENVIRONMENT === 'production') { + if (process.env.NODE_ENV === 'production') { if (isRtl(getLocale())) { document.getElementsByTagName('html')[0].setAttribute('dir', 'rtl'); document.styleSheets[0].disabled = true;