Access shop.local at theme.scss.liquid file

kamalalyafei
Excursionist
21 2 2

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

 

kamalalyafei
Excursionist
21 2 2

Any Help?

0 Likes
MakyMendez
New Member
2 0 0

Did you tried with Shopify.locale?

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

0 Likes