From 6f07ab05bdbfffc54425c54ec836cdbddb652112 Mon Sep 17 00:00:00 2001 From: Tommy Petty Date: Mon, 16 Oct 2023 07:31:39 -0400 Subject: [PATCH] fix(i18n): camelCase to kebab-case for resource ids --- .../sanity/src/desk/documentActions/DiscardChangesAction.tsx | 4 ++-- packages/sanity/src/desk/documentActions/UnpublishAction.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/sanity/src/desk/documentActions/DiscardChangesAction.tsx b/packages/sanity/src/desk/documentActions/DiscardChangesAction.tsx index 7dbe64a4733..1c3ed610e01 100644 --- a/packages/sanity/src/desk/documentActions/DiscardChangesAction.tsx +++ b/packages/sanity/src/desk/documentActions/DiscardChangesAction.tsx @@ -14,7 +14,7 @@ import { } from 'sanity' const DISABLED_REASON_KEY = { - NO_CHANGES: 'action.discard-changes.disabled.noChanges', + NO_CHANGES: 'action.discard-changes.disabled.no-changes', NOT_PUBLISHED: 'action.discard-changes.disabled.not-published', NOT_READY: 'action.discard-changes.disabled.not-ready', } as const @@ -54,7 +54,7 @@ export const DiscardChangesAction: DocumentActionComponent = ({ tone: 'critical', onCancel: onComplete, onConfirm: handleConfirm, - message: t('action.discard-changes.confirmDialog.confirm-discard-changes'), + message: t('action.discard-changes.confirm-dialog.confirm-discard-changes'), }, [handleConfirm, isConfirmDialogOpen, onComplete, t], ) diff --git a/packages/sanity/src/desk/documentActions/UnpublishAction.tsx b/packages/sanity/src/desk/documentActions/UnpublishAction.tsx index 4ab35ca20f1..ca121add560 100644 --- a/packages/sanity/src/desk/documentActions/UnpublishAction.tsx +++ b/packages/sanity/src/desk/documentActions/UnpublishAction.tsx @@ -15,7 +15,7 @@ import { const DISABLED_REASON_KEY = { NOT_PUBLISHED: 'action.unpublish.disabled.not-published', NOT_READY: 'action.unpublish.disabled.not-ready', - LIVE_EDIT_ENABLED: 'action.unpublish.disabled.liveEditEnabled', + LIVE_EDIT_ENABLED: 'action.unpublish.disabled.live-edit-enabled', } /** @internal */