v0.6.2
版本发布时间: 2022-07-31 16:27:02
novuhq/novu最新发布版本:v0.24.0(2024-03-18 17:44:43)
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 https://github.com/novuhq/novu/pull/892
- fix: remove console errors by @ainouzgali in https://github.com/novuhq/novu/pull/889
- fix: remove un-needed node-fetcher dependency by @scopsy in https://github.com/novuhq/novu/pull/895
- fix: add button type for unstyled buttons by @scopsy in https://github.com/novuhq/novu/pull/894
- fix: use notification default storeid by @djabarovgeorge in https://github.com/novuhq/novu/pull/897
- Cypress component testing seed for WEB project by @scopsy in https://github.com/novuhq/novu/pull/899
- fix: add subject rendering variables with handlebars by @scopsy in https://github.com/novuhq/novu/pull/903
- fix: add missing shared exports by @scopsy in https://github.com/novuhq/novu/pull/902
Full Changelog: https://github.com/novuhq/novu/compare/v0.6.0...v0.6.2