Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello I am using Dawn.
How do you show ’年’ on then register form when Japanese is selected and not show it when English is selected?
Thank you in advance!
<div class="Form-Item">
<p class="Form-Item-Label">{{ 'customer.register.birthday' | t }}</p>
<div class="form-birthday">
<select class="form-select" id="RegisterForm-year" name="customer[tags][year]">
<option value="year" disabled selected>{{ 'customer.register.year' | t }}</option>
{% for i in (1951..2023) %}
<option value="{{ i }}">{{ i }}</option>
{% endfor %}
{% for i in (1951..2023) %}
<option value="{{ i }}">{{ i }}年</option>
{% endfor %}
</select>
You can create custom translation text and add its value to your option to assign the text in Japanese language and black for others.
Hope it's clear to you...
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025