Deprecate icu:unreadMessage
This commit is contained in:
parent
3f9c184577
commit
c2044a4ce3
2 changed files with 3 additions and 16 deletions
|
@ -585,7 +585,7 @@
|
|||
},
|
||||
"icu:unreadMessage": {
|
||||
"messageformat": "1 Unread Message",
|
||||
"description": "Text for unread message separator, just one message"
|
||||
"description": "(Deleted 2024/03/07) Text for unread message separator, just one message"
|
||||
},
|
||||
"icu:unreadMessages": {
|
||||
"messageformat": "{count, plural, one {# Unread Message} other {# Unread Messages}}",
|
||||
|
@ -1618,7 +1618,7 @@
|
|||
"description": "Instructions on the device link screen"
|
||||
},
|
||||
"icu:Install__qr-failed": {
|
||||
"messageformat": "(deleted 05/09/2023) The QR code couldn't load. Check your internet and try again. <learnMoreLink>Learn more</learnMoreLink>",
|
||||
"messageformat": "(deleted 2023/09/05) The QR code couldn't load. Check your internet and try again. <learnMoreLink>Learn more</learnMoreLink>",
|
||||
"description": "Shown on the install screen if the QR code fails to load"
|
||||
},
|
||||
"icu:Install__qr-failed-load": {
|
||||
|
@ -3331,14 +3331,6 @@
|
|||
"messageformat": "Chat marked unread",
|
||||
"description": "A toast that shows up when user marks a conversation as unread"
|
||||
},
|
||||
"icu:SendEdit--dialog--title": {
|
||||
"messageformat": "Signal beta only",
|
||||
"description": "(deleted 8/30) Title of the modal shown before sending your first edit message"
|
||||
},
|
||||
"icu:SendEdit--dialog--body": {
|
||||
"messageformat": "Editing messages is available to Signal beta users only. If you edit a message, it will only be visible to people who are on the latest version of Signal beta.",
|
||||
"description": "(deleted 8/30) Body text of the modal shown before sending your first edit message"
|
||||
},
|
||||
"icu:SendEdit--dialog--title2": {
|
||||
"messageformat": "Edit Message",
|
||||
"description": "Title of the modal shown before sending your first edit message"
|
||||
|
|
|
@ -12,11 +12,6 @@ export type Props = {
|
|||
|
||||
export const LastSeenIndicator = forwardRef<HTMLDivElement, Props>(
|
||||
function LastSeenIndicatorInner({ count, i18n }, ref) {
|
||||
const message =
|
||||
count === 1
|
||||
? i18n('icu:unreadMessage')
|
||||
: i18n('icu:unreadMessages', { count });
|
||||
|
||||
return (
|
||||
<div className="module-last-seen-indicator" ref={ref}>
|
||||
<div className="module-last-seen-indicator__bar" role="separator" />
|
||||
|
@ -25,7 +20,7 @@ export const LastSeenIndicator = forwardRef<HTMLDivElement, Props>(
|
|||
className="module-last-seen-indicator__text"
|
||||
role="heading"
|
||||
>
|
||||
{message}
|
||||
{i18n('icu:unreadMessages', { count })}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue