diff --git a/public/locales/ca-CA/translations.json b/public/locales/ca-CA/translations.json index 5dfa97bdd..02d1367b3 100644 --- a/public/locales/ca-CA/translations.json +++ b/public/locales/ca-CA/translations.json @@ -557,5 +557,8 @@ "can_trade": null, "can_transfer": null, "can_clawback": null, - "search_results_banner": null + "search_results_banner": null, + "enable_amendment_name": null, + "amendment_status": null, + "expected_date": null } diff --git a/public/locales/en-US/translations.json b/public/locales/en-US/translations.json index 4d8196175..83fb30d98 100644 --- a/public/locales/en-US/translations.json +++ b/public/locales/en-US/translations.json @@ -557,5 +557,9 @@ "can_trade": "Can Trade", "can_transfer": "Can Transfer", "can_clawback": "Can Clawback", - "search_results_banner": "Token search by name and account is now available! Try searching for USD" + "search_results_banner": "Token search by name and account is now available! Try searching for USD", + "enable_amendment_name": "Amendment Name", + "amendment_status": "Amendment Status", + "expected_date": "Expected Date" + } diff --git a/public/locales/es-ES/translations.json b/public/locales/es-ES/translations.json index 3f6ff0b18..17965bd0a 100644 --- a/public/locales/es-ES/translations.json +++ b/public/locales/es-ES/translations.json @@ -553,5 +553,8 @@ "can_trade": null, "can_transfer": null, "can_clawback": null, - "search_results_banner": null + "search_results_banner": null, + "enable_amendment_name": null, + "amendment_status": null, + "expected_date": null } diff --git a/public/locales/fr-FR/translations.json b/public/locales/fr-FR/translations.json index 5e2f48fde..33ac67e2d 100644 --- a/public/locales/fr-FR/translations.json +++ b/public/locales/fr-FR/translations.json @@ -554,5 +554,8 @@ "can_trade": null, "can_transfer": null, "can_clawback": null, - "search_results_banner": null + "search_results_banner": null, + "enable_amendment_name": null, + "amendment_status": null, + "expected_date": null } diff --git a/public/locales/ja-JP/translations.json b/public/locales/ja-JP/translations.json index f5779f900..e5b667cac 100644 --- a/public/locales/ja-JP/translations.json +++ b/public/locales/ja-JP/translations.json @@ -553,5 +553,8 @@ "can_trade": null, "can_transfer": null, "can_clawback": null, - "search_results_banner": null + "search_results_banner": null, + "enable_amendment_name": null, + "amendment_status": null, + "expected_date": null } diff --git a/public/locales/ko-KR/translations.json b/public/locales/ko-KR/translations.json index f44ad2a32..0f5406903 100644 --- a/public/locales/ko-KR/translations.json +++ b/public/locales/ko-KR/translations.json @@ -551,5 +551,8 @@ "can_trade": null, "can_transfer": null, "can_clawback": null, - "search_results_banner": null + "search_results_banner": null, + "enable_amendment_name": null, + "amendment_status": null, + "expected_date": null } diff --git a/src/containers/shared/components/Transaction/EnableAmendment/Simple.tsx b/src/containers/shared/components/Transaction/EnableAmendment/Simple.tsx index 35f885c53..cd53f50b8 100644 --- a/src/containers/shared/components/Transaction/EnableAmendment/Simple.tsx +++ b/src/containers/shared/components/Transaction/EnableAmendment/Simple.tsx @@ -1,4 +1,5 @@ import { useContext, useEffect, useState } from 'react' +import { useTranslation } from 'react-i18next' import { useLanguage } from '../../../hooks' import { SimpleRow } from '../SimpleRow' import { TransactionSimpleProps } from '../types' @@ -16,6 +17,7 @@ const states = { export const Simple = ({ data }: TransactionSimpleProps) => { const language = useLanguage() + const { t } = useTranslation() const [amendmentDetails, setAmendmentDetails] = useState({ name: states.loading, minRippledVersion: states.loading, @@ -56,7 +58,7 @@ export const Simple = ({ data }: TransactionSimpleProps) => { return ( <> - + ) => { {amendmentDetails.name} - + {amendmentStatus} - + {amendmentDetails.minRippledVersion} {amendmentStatus === 'Got Majority' && ( - + {expectedDate} )}