From 83f6506ece7fd4b4b8f21662909c8474fd6df0ed Mon Sep 17 00:00:00 2001 From: Pedro Bonamin Date: Tue, 6 Feb 2024 17:13:17 +0100 Subject: [PATCH] fix: updates to translations after rebase --- packages/sanity/src/structure/comments/i18n/resources.ts | 4 +++- .../comments/plugin/inspector/CommentsInspectorHeader.tsx | 4 +++- .../src/components/list/CommentsListItemContextMenu.tsx | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/sanity/src/structure/comments/i18n/resources.ts b/packages/sanity/src/structure/comments/i18n/resources.ts index 31bc5a34ef9..e0264b6ee84 100644 --- a/packages/sanity/src/structure/comments/i18n/resources.ts +++ b/packages/sanity/src/structure/comments/i18n/resources.ts @@ -25,7 +25,7 @@ const commentsLocaleStrings = defineLocalesResources('comments', { /** When composing a reply, the placeholder text shown when the input is empty */ 'compose.reply-placeholder': 'Reply', /** When composing a reply, the placeholder text shown when the input is empty and the mode is upsell */ - 'compose.reply-placeholder-upsell': 'Reply', + 'compose.reply-placeholder-upsell': 'Upgrade to reply', /** When composing a comment, the aria label for the button to send a comment */ 'compose.send-comment-aria-label': 'Send comment', /** When composing a comment, the tooltip text for the button to send a comment */ @@ -181,6 +181,8 @@ const commentsLocaleStrings = defineLocalesResources('comments', { 'status-filter.status-resolved': 'Resolved', /** Status filter: The full text for describing filtering on resolved comments */ 'status-filter.status-resolved-full': 'Resolved comments', + /** Status filter: The full text for describing filtering on resolved comments and is upsell mode */ + 'status-filter.status-resolved-full-upsell': 'Upgrade to see resolved comments', }) /** diff --git a/packages/sanity/src/structure/comments/plugin/inspector/CommentsInspectorHeader.tsx b/packages/sanity/src/structure/comments/plugin/inspector/CommentsInspectorHeader.tsx index 0693915a9d9..125bfbed91c 100644 --- a/packages/sanity/src/structure/comments/plugin/inspector/CommentsInspectorHeader.tsx +++ b/packages/sanity/src/structure/comments/plugin/inspector/CommentsInspectorHeader.tsx @@ -67,7 +67,9 @@ export const CommentsInspectorHeader = forwardRef(function CommentsInspectorHead onClick={handleSetResolvedView} text={t('status-filter.status-resolved-full')} tooltipProps={ - mode === 'upsell' ? {content: 'Upgrade to see resolved comments'} : undefined + mode === 'upsell' + ? {content: t('status-filter.status-resolved-full-upsell')} + : undefined } disabled={mode === 'upsell'} /> diff --git a/packages/sanity/src/structure/comments/src/components/list/CommentsListItemContextMenu.tsx b/packages/sanity/src/structure/comments/src/components/list/CommentsListItemContextMenu.tsx index fdbf55577b3..98af4c248c7 100644 --- a/packages/sanity/src/structure/comments/src/components/list/CommentsListItemContextMenu.tsx +++ b/packages/sanity/src/structure/comments/src/components/list/CommentsListItemContextMenu.tsx @@ -135,7 +135,7 @@ export function CommentsListItemContextMenu(props: CommentsListItemContextMenuPr onClick={onEditStart} text={t('list-item.edit-comment')} tooltipProps={ - mode === 'upsell' ? {content: t('list-item-edit-comment-upsell')} : undefined + mode === 'upsell' ? {content: t('list-item.edit-comment-upsell')} : undefined } disabled={mode === 'upsell'} />