Translation problem on notification action dropdown in notification center from iframe
Hi Novu team, i think there is a translation problem in the notification center from iframe
i setup the novu.init() with
i18n: this.$store.state.user.lang
wich for my case can only be 'ar' or 'fr'
but the action dropdown doesn't translate at all (view screenshot)
7 Replies
@RaptorFou
@novu/notification-center
is not actively maintained. I would recommend to create workflows on new dashboard and use @novu/react.
Checkout this doc on how to localize the inbox component
https://docs.novu.co/inbox/react/localizationNovu Cloud Dashboard
Novu Cloud Dashboard
hey @Pawan Jain thanks for the reply, but i think i misexplained myself by omitting some context.
i'm using the notification center via iframe embed in a
Vue 2
project.
in the novu.init() part i set up the i18n
parameter to only be 'ar' or 'fr'
everything in the notification center gets translated except the dropdown shown in the screenshot above
are these translations missing ? if so, do i need to specify the translations for them ?@RaptorFou
here is the example code to create custom translation values
@RaptorFou
Did you get chance to try above code to change translations?
@Pawan Jain, i haven’t had the chance to test it yet, i'll update you once i do
@Pawan Jain i just tested it, seems to work perfectly fine
Just a little suggestion about the documentation https://v0.x-docs.novu.co/notification-center/client/react/customization#customize-the-ui-language, it would be helpful if the i18n translation object section included a complete list of variables that can be modified, like you did in your example above
Novu
Customizing Notification Center - Novu
Learn how to customize the pre built notification center component partially or building your own notification center component from scratch using Novu provided hooks
@RaptorFou, you just advanced to level 1!
Sure Raptor 🙌🏻