Access shop.local at theme.scss.liquid file

Highlighted
Tourist
17 0 1

Hi,

 

I am trying to access the shop.local at theme.scss.liquid file to set the font name based on the language of the shop,

like this code:

{%if shop.locale == "ar"%}

$baseFontStack: Al-Jazeera-Arabic ;

{%else%}

$baseFontStack: sary_soft_semiboldregular;

{%endif%}

 

BUT, all  times the 'shop.locale' return 'en' although I accessed 'https://safanaonline.com/ar'

 

Can you help,

Thanks in advanced

 

0 Likes
Highlighted
Tourist
17 0 1

Any Help?

0 Likes