From 8a42fe16b5ebca80e76d98fb05006cf41f5a953a Mon Sep 17 00:00:00 2001 From: wolffman122 Date: Tue, 6 May 2025 07:49:17 -0400 Subject: [PATCH] feat(issuecomment): fix translation issue (#1635) Fix the `Save Changes` and `Cancel` buttons so that their text will now translate fix #1604 --- src/components/IssueDetails/IssueComment/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/IssueDetails/IssueComment/index.tsx b/src/components/IssueDetails/IssueComment/index.tsx index 5808ab3a8..ef96af4a4 100644 --- a/src/components/IssueDetails/IssueComment/index.tsx +++ b/src/components/IssueDetails/IssueComment/index.tsx @@ -2,6 +2,7 @@ import Button from '@app/components/Common/Button'; import CachedImage from '@app/components/Common/CachedImage'; import Modal from '@app/components/Common/Modal'; import { Permission, useUser } from '@app/hooks/useUser'; +import globalMessages from '@app/i18n/globalMessages'; import defineMessages from '@app/utils/defineMessages'; import { Menu, Transition } from '@headlessui/react'; import { EllipsisVerticalIcon } from '@heroicons/react/24/solid'; @@ -207,13 +208,13 @@ const IssueComment = ({ type="button" onClick={() => setIsEditing(false)} > - Cancel + {intl.formatMessage(globalMessages.cancel)}