Update strings to make direct refs to buttons

This commit is contained in:
Fedor Indutny 2024-08-23 14:53:13 -07:00 committed by GitHub
parent 0f071afaf2
commit c535ed6c9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 16 deletions

View file

@ -6475,6 +6475,10 @@
}, },
"icu:Stories__placeholder-with-icon--text": { "icu:Stories__placeholder-with-icon--text": {
"messageformat": "Click <newStoryIcon>Add a story</newStoryIcon> to add an update.", "messageformat": "Click <newStoryIcon>Add a story</newStoryIcon> to add an update.",
"description": "(Deleted 2024/08/22) Placeholder label for the story view"
},
"icu:Stories__placeholder-with-icon--text-2": {
"messageformat": "Click <newStoryButtonIcon></newStoryButtonIcon> to add an update.",
"description": "Placeholder label for the story view" "description": "Placeholder label for the story view"
}, },
"icu:Stories__from-to-group": { "icu:Stories__from-to-group": {
@ -7199,6 +7203,10 @@
}, },
"icu:CallsTab__EmptyStateText--with-icon": { "icu:CallsTab__EmptyStateText--with-icon": {
"messageformat": "Click <newCallIcon>New Call</newCallIcon> to start a new voice or video call.", "messageformat": "Click <newCallIcon>New Call</newCallIcon> to start a new voice or video call.",
"description": "(Deleted 2024/08/22) Calls Tab > When no call is selected > Empty state > Call to action text"
},
"icu:CallsTab__EmptyStateText--with-icon-2": {
"messageformat": "Click <newCallButtonIcon></newCallButtonIcon> to start a new voice or video call.",
"description": "Calls Tab > When no call is selected > Empty state > Call to action text" "description": "Calls Tab > When no call is selected > Empty state > Call to action text"
}, },
"icu:CallsList__SearchInputPlaceholder": { "icu:CallsList__SearchInputPlaceholder": {

View file

@ -319,19 +319,14 @@ export function CallsTab({
<p className="CallsTab__EmptyStateLabel"> <p className="CallsTab__EmptyStateLabel">
<I18n <I18n
i18n={i18n} i18n={i18n}
id="icu:CallsTab__EmptyStateText--with-icon" id="icu:CallsTab__EmptyStateText--with-icon-2"
components={{ components={{
// eslint-disable-next-line react/no-unstable-nested-components // eslint-disable-next-line react/no-unstable-nested-components
newCallIcon: children => { newCallButtonIcon: () => {
let label: string | undefined;
const first = children[0];
if (typeof first === 'string') {
label = first;
}
return ( return (
<span <span
className="CallsTab__EmptyState__ActionIcon" className="CallsTab__EmptyState__ActionIcon"
aria-label={label} aria-label={i18n('icu:CallsTab__NewCallActionLabel')}
/> />
); );
}, },

View file

@ -225,19 +225,14 @@ export function StoriesTab({
) : ( ) : (
<I18n <I18n
i18n={i18n} i18n={i18n}
id="icu:Stories__placeholder-with-icon--text" id="icu:Stories__placeholder-with-icon--text-2"
components={{ components={{
// eslint-disable-next-line react/no-unstable-nested-components // eslint-disable-next-line react/no-unstable-nested-components
newStoryIcon: children => { newStoryButtonIcon: () => {
let label: string | undefined;
const first = children[0];
if (typeof first === 'string') {
label = first;
}
return ( return (
<span <span
className="Stories__placeholder__text__action" className="Stories__placeholder__text__action"
aria-label={label} aria-label={i18n('icu:Stories__add')}
/> />
); );
}, },