-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(js): Revise localization keys DX
- Loading branch information
Showing
3 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
packages/js/src/ui/components/elements/InboxStatus/constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import type { LocalizationKey, NotificationStatus } from '../../../types'; | ||
|
||
export const notificationStatusOptionsLocalizationKeys = { | ||
unreadRead: 'inbox.status.options.unreadRead', | ||
unread: 'inbox.status.options.unread', | ||
archived: 'inbox.status.options.archived', | ||
unreadRead: 'inbox.filters.dropdownOptions.default', | ||
unread: 'inbox.filters.dropdownOptions.unread', | ||
archived: 'inbox.filters.dropdownOptions.archived', | ||
} as const satisfies Record<NotificationStatus, LocalizationKey>; | ||
|
||
export const inboxStatusLocalizationKeys = { | ||
unreadRead: 'inbox.status.unreadRead', | ||
unread: 'inbox.status.unread', | ||
archived: 'inbox.status.archived', | ||
export const inboxFilterLocalizationKeys = { | ||
unreadRead: 'inbox.filters.labels.default', | ||
unread: 'inbox.filters.labels.unread', | ||
archived: 'inbox.filters.labels.archived', | ||
} as const satisfies Record<NotificationStatus, LocalizationKey>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters