i18n support for notification-center component
It is now possible to translate the notification center UI elements by passing a translation object or a premade translation. More info can be found on the documentation page.
Custom object implementation:
<NovuProvider i18n={{
// Make sure that the following is a proper 2 letter language code,
// since this is used by moment.js in order to calculate the relative time for each notification
lang: "de",
translations: {
poweredBy: "unterstützt von",
markAllAsRead: "Alles als gelesen markieren",
notifications: "Benachrichtigungen",
},
}}>
</NovuProvider>
Premade languages created by the community:
<NovuProvider i18n={'en'}>
</NovuProvider>
What else has changed
- fix: so dkim can be undefined by @davidsoderberg in #892
- fix: remove console errors by @ainouzgali in #889
- fix: remove un-needed node-fetcher dependency by @scopsy in #895
- fix: add button type for unstyled buttons by @scopsy in #894
- fix: use notification default storeid by @djabarovgeorge in #897
- Cypress component testing seed for WEB project by @scopsy in #899
- fix: add subject rendering variables with handlebars by @scopsy in #903
- fix: add missing shared exports by @scopsy in #902
Full Changelog: v0.6.0...v0.6.2