Hi :)Hope you can help. I would like to use the feature "Current Day of the Week" is there a way I can translate it to Danish? thanks in advance
Hi :)Hope you can help. I would like to use the feature "Current Day of the Week" is there a way I can translate it to Danish? thanks in advance
Hi there
Welcome to the Community! Thank you for posting your question regarding the use of multiple languages within our product.
As per our documentation regarding Date Variables in Templates, we only support English formatted variables. Unfortunately at this time this is only allowing English to be automated. I have put this in as a note for our product team to get eyes on it as well so that this valuable feature could be supported by Klaviyo some day.
However, there is a workaround for this in the meantime! You can use if / else statements to show the corresponding Danish value as desired. The source code would look like this:
{% if current_weekday == Monday %}Mandag{% elif current_weekday == Tuesday %}Tirsdag{% elif current_weekday == Wednesday %}Onsdag{% elif current_weekday == Thursday %}Torsdag{% elif current_weekday == Friday %}Fredag{% elif current_weekday == Saturday %}Lørdag{% else %}Søndag{% endif %}
I hope this helped and have a good day!
Alex
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.