How can I show a certain word when the different language is selected?

Topic summary

A user working with the Dawn theme needs to conditionally display the Japanese character ‘年’ (year) on a registration form based on the selected language—showing it for Japanese and hiding it for English.

Proposed Solution:
Another participant suggests using custom translation text, which would allow assigning different values per language. This approach would:

  • Display ‘年’ when Japanese is selected
  • Show nothing (or alternative text) for other languages

The response appears to reference language-specific text assignment, though the technical implementation details are partially obscured in the provided conversation.

Summarized with AI on November 19. AI used: claude-sonnet-4-5-20250929.

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!


  

{{ 'customer.register.birthday' | t }}

  
    

Hi @harukajmickey

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…