Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Is it possible in Shopify to change font when the site changes language. I would like to use one font for English and another font for Swedish (as the Swedish alphabet contains additional characters not supported by the font I'm using in English). Is it possible to do this?
Solved! Go to the solution
This is an accepted solution.
Hi @SpongeRose63,
This is possible, just you need to add conditions to show it, and it will work fine.
You can use 'request.locale.iso_code' to check and change the font. Refer https://shopify.dev/api/liquid/objects#shop_locale-iso_code
For example:
{%- case request.locale.iso_code -%}
{%- when 'sv' -%}
<!-- show swedish -->
{%- when 'en' -%}
<!-- show english -->
{%- endcase -%}
Hope it helps!
This is an accepted solution.
Hi @SpongeRose63,
This is possible, just you need to add conditions to show it, and it will work fine.
You can use 'request.locale.iso_code' to check and change the font. Refer https://shopify.dev/api/liquid/objects#shop_locale-iso_code
For example:
{%- case request.locale.iso_code -%}
{%- when 'sv' -%}
<!-- show swedish -->
{%- when 'en' -%}
<!-- show english -->
{%- endcase -%}
Hope it helps!
Thank you so much!
Hey LitExtension,
I have the same problem. But I'm not sure how to use the code you showed. Could you how an example of how to use it with font files uploaded to my shopify files? My site is English and Korean. Thanks!
I'm just not really code friendly so I am not sure how to apply the code. Could you show me how you applied the code to your site? It would be of tremendous help!
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025