diff --git a/i18n/en/code.json b/i18n/en/code.json index 9d89ad73c..9046e3b63 100644 --- a/i18n/en/code.json +++ b/i18n/en/code.json @@ -819,5 +819,26 @@ "theme.unlistedContent.message": { "message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.", "description": "The unlisted content banner message" + }, + "With our API, you'll be able to:": { + "message": "With our API, you'll be able to:" + }, + "Yes, delete": { + "message": "Yes, delete" + }, + "Delete token": { + "message": "Delete token" + }, + "Are you sure you want to delete this token?": { + "message": "Are you sure you want to delete this token?" + }, + "Delete app": { + "message": "Delete app" + }, + "Are you sure you want to delete this app?": { + "message": "Are you sure you want to delete this app?" + }, + "Update App": { + "message": "Update App" } } diff --git a/src/features/Home/ApiFeatures/ApiFeatures.tsx b/src/features/Home/ApiFeatures/ApiFeatures.tsx index 348070fd0..cf82c3373 100644 --- a/src/features/Home/ApiFeatures/ApiFeatures.tsx +++ b/src/features/Home/ApiFeatures/ApiFeatures.tsx @@ -18,7 +18,7 @@ export const ApiFeatures = () => { - {"With our API, you'll be able to:"} + With our API, you'll be able to:
diff --git a/src/features/dashboard/components/ApiTokenTable/DeleteTokenDialog/index.tsx b/src/features/dashboard/components/ApiTokenTable/DeleteTokenDialog/index.tsx index dfe4cec4d..de23b64b8 100644 --- a/src/features/dashboard/components/ApiTokenTable/DeleteTokenDialog/index.tsx +++ b/src/features/dashboard/components/ApiTokenTable/DeleteTokenDialog/index.tsx @@ -1,6 +1,7 @@ import React, { useMemo, useCallback } from 'react'; import { Modal } from '@deriv/ui'; import { TModalActionButton } from '@deriv/ui/dist/types/src/components/core/modal/types'; +import { translate } from '@docusaurus/Translate'; type TDeleteTokendialog = { setToggleModal: React.Dispatch>; @@ -21,7 +22,7 @@ const DeleteTokenDialog = ({ onDelete, setToggleModal }: TDeleteTokendialog) => () => [ { id: 0, - text: 'Cancel', + text: translate({ message: 'Cancel' }), color: 'secondary', onClick: () => { setToggleModal(false); @@ -29,7 +30,7 @@ const DeleteTokenDialog = ({ onDelete, setToggleModal }: TDeleteTokendialog) => }, { id: 1, - text: 'Yes, delete', + text: translate({ message: 'Yes, delete' }), color: 'primary', onClick: () => { onDelete(); @@ -45,8 +46,8 @@ const DeleteTokenDialog = ({ onDelete, setToggleModal }: TDeleteTokendialog) =>
diff --git a/src/features/dashboard/components/Dialogs/DeleteAppDialog/index.tsx b/src/features/dashboard/components/Dialogs/DeleteAppDialog/index.tsx index 608fcfb1b..4c4a477ad 100644 --- a/src/features/dashboard/components/Dialogs/DeleteAppDialog/index.tsx +++ b/src/features/dashboard/components/Dialogs/DeleteAppDialog/index.tsx @@ -2,6 +2,7 @@ import React, { useMemo, useCallback } from 'react'; import { TModalActionButton } from '@deriv/ui/dist/types/src/components/core/modal/types'; import { Modal } from '@deriv/ui'; import { useDeleteApp } from '../../../hooks/useDeleteApp'; +import { translate } from '@docusaurus/Translate'; type TDeleteAppDialogProps = { appId: number; @@ -24,7 +25,7 @@ const DeleteAppDialog = ({ appId, onClose }: TDeleteAppDialogProps) => { () => [ { id: 0, - text: 'Yes, delete', + text: translate({ message: 'Yes, delete' }), color: 'primary', onClick: () => { deleteApp(appId); @@ -33,7 +34,7 @@ const DeleteAppDialog = ({ appId, onClose }: TDeleteAppDialogProps) => { }, { id: 1, - text: 'Cancel', + text: translate({ message: 'Cancel' }), color: 'secondary', onClick: () => { onClose(); @@ -49,8 +50,8 @@ const DeleteAppDialog = ({ appId, onClose }: TDeleteAppDialogProps) => {