N
Novu•3mo ago
jvinga

I18n and translation files

I was wondering what would you suggest as per translations variables, having multiples files or one big that you update? One reason being, when you're in the template, on the UI, there is no (apparent) ways to define which one you're using. we were about to use somehow same keys in different translation files so maybe the right approach would be to have like a big i18n files with different objects for each email? Looking for how you guys want us to use those translations! Thanks!
No description
4 Replies
Novu_Bot
Novu_Bot•3mo ago
@jvinga, you just advanced to level 2!
Pawan Jain
Pawan Jain•3mo ago
@Gali Baum
Gali Baum
Gali Baum•3mo ago
One reason being, when you're in the template, on the UI, there is no (apparent) ways to define which one you're using.
@jvinga what do you mean by that? In the ui you would use translationGroupName.translationKey for example {{i18n sign-up.welcome}}
we were about to use somehow same keys in different translation files so maybe the right approach would be to have like a big i18n files with different objects for each email?
Could you give an example? I'm not sure I follow 😬
jvinga
jvinga•3mo ago
Oh I was not passing the translationGroupName, it makes sense I'll try it with the group names. Thanks!
Want results from more Discord servers?
Add your server
More Posts