N
Novu•7d ago
Shaun

Novu V2 Translation & Pluralization

Hi there! With the switch to Novu V2 along with LiquidJS, I was curious how we are supposed to both pluralize and translate? I'd like to pick between two translations based on the count of digested items but am not sure how to accomplish this with the updated syntax? I had done something like:
{{ steps.digest-step.eventCount | pluralize: t.key_single, t.key_plural }}
{{ steps.digest-step.eventCount | pluralize: t.key_single, t.key_plural }}
Any ideas what the correct syntax and handling for this use case is? Thanks!
4 Replies
Pawan Jain
Pawan Jain•5d ago
Hi Shaun

I see above pluralize syntax is not working as expected. I am checking with the team on this
Pawan Jain
Pawan Jain•5d ago
@Shaun it is currently not supported. I have shared the feedback with team
Shaun
ShaunOP•5d ago
Ah, I see. Thanks for the heads up! I will try to put something together with some if statements for now, thanks 🙂
Pawan Jain
Pawan Jain•4d ago
I will keep you updated on the progress on this feature

Did you find this page helpful?