-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(js): Revise localization keys DX #6380
Conversation
packages/js/src/ui/types.ts
Outdated
@@ -55,7 +55,7 @@ export type NovuProviderProps = BaseNovuProviderProps & { | |||
}; | |||
|
|||
export enum NotificationStatus { | |||
UNREAD_READ = 'unreadRead', | |||
UNREAD_READ = 'all', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
☑ chore: that's not meaning all, because all is: "unread+read+archived+unarchived"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think it matters that much for the key? I also did not like unreadRead
as the name here. Should we name it Inbox
or home
or sth?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I think it might confuse the users if we call it all
as the localization key
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you changed the name for the enum but not the localization key
a9d88bd
to
4843803
Compare
4843803
to
8ba755c
Compare
8ba755c
to
5bc3339
Compare
What changed? Why was the change needed?
Screenshots
Expand for optional sections
Related enterprise PR
Special notes for your reviewer