Skip to content
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

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

desiprisg
Copy link
Contributor

What changed? Why was the change needed?

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

Copy link

linear bot commented Aug 22, 2024

@@ -55,7 +55,7 @@ export type NovuProviderProps = BaseNovuProviderProps & {
};

export enum NotificationStatus {
UNREAD_READ = 'unreadRead',
UNREAD_READ = 'all',
Copy link
Contributor

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"

Copy link
Contributor Author

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?

Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed it!

Copy link
Contributor

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

@desiprisg desiprisg force-pushed the com-157-revise-appearance-localization-dx branch from 4843803 to 8ba755c Compare August 28, 2024 10:11
@desiprisg desiprisg force-pushed the com-157-revise-appearance-localization-dx branch from 8ba755c to 5bc3339 Compare August 28, 2024 10:14
@desiprisg desiprisg merged commit e4cc00e into next Aug 28, 2024
21 checks passed
@desiprisg desiprisg deleted the com-157-revise-appearance-localization-dx branch August 28, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants