I’m using an app called “39Editor”, showing a form to encourage customers to create accounts.
And in order to show different language versions of the template based on customers’ ISO code, I inserted this code:
{%- unless customer -%}
{% if localization.country.iso_code == 'JP' %}
(Japanese template)
{%- else -%}
(English template)
{%- endif -%}
{%- endunless -%}
However when I tested, I found the customers will still see the Japanese template even though they access from a country outside of Japan. I have asked the app developer for help, and they said “I think that for some reason JP is not set in localization.country.iso_code”, advising me to add {{ localization.country.iso_code }} somewhere. It would be helpful if you could tell me exactly what to do.
Thank you!