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": {
|
"icu:unreadMessage": {
|
||||||
"messageformat": "1 Unread Message",
|
"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": {
|
"icu:unreadMessages": {
|
||||||
"messageformat": "{count, plural, one {# Unread Message} other {# Unread Messages}}",
|
"messageformat": "{count, plural, one {# Unread Message} other {# Unread Messages}}",
|
||||||
|
@ -1618,7 +1618,7 @@
|
||||||
"description": "Instructions on the device link screen"
|
"description": "Instructions on the device link screen"
|
||||||
},
|
},
|
||||||
"icu:Install__qr-failed": {
|
"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"
|
"description": "Shown on the install screen if the QR code fails to load"
|
||||||
},
|
},
|
||||||
"icu:Install__qr-failed-load": {
|
"icu:Install__qr-failed-load": {
|
||||||
|
@ -3331,14 +3331,6 @@
|
||||||
"messageformat": "Chat marked unread",
|
"messageformat": "Chat marked unread",
|
||||||
"description": "A toast that shows up when user marks a conversation as 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": {
|
"icu:SendEdit--dialog--title2": {
|
||||||
"messageformat": "Edit Message",
|
"messageformat": "Edit Message",
|
||||||
"description": "Title of the modal shown before sending your first 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>(
|
export const LastSeenIndicator = forwardRef<HTMLDivElement, Props>(
|
||||||
function LastSeenIndicatorInner({ count, i18n }, ref) {
|
function LastSeenIndicatorInner({ count, i18n }, ref) {
|
||||||
const message =
|
|
||||||
count === 1
|
|
||||||
? i18n('icu:unreadMessage')
|
|
||||||
: i18n('icu:unreadMessages', { count });
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="module-last-seen-indicator" ref={ref}>
|
<div className="module-last-seen-indicator" ref={ref}>
|
||||||
<div className="module-last-seen-indicator__bar" role="separator" />
|
<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"
|
className="module-last-seen-indicator__text"
|
||||||
role="heading"
|
role="heading"
|
||||||
>
|
>
|
||||||
{message}
|
{i18n('icu:unreadMessages', { count })}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue