From 93f57c2e1dba69776b618f8fb2d038958a322a4e Mon Sep 17 00:00:00 2001 From: Kelly Phan Date: Tue, 20 Aug 2024 16:43:44 +0200 Subject: [PATCH] fix: replace translations --- src/components/customers/CustomerInvoicesList.tsx | 2 +- src/components/invoices/InvoicesList.tsx | 2 +- src/layouts/CustomerInvoiceDetails.tsx | 14 +++++++------- src/pages/InvoiceOverview.tsx | 2 +- translations/base.json | 10 ++++++++-- 5 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/components/customers/CustomerInvoicesList.tsx b/src/components/customers/CustomerInvoicesList.tsx index 8687b9775..3a953f871 100644 --- a/src/components/customers/CustomerInvoicesList.tsx +++ b/src/components/customers/CustomerInvoicesList.tsx @@ -238,7 +238,7 @@ export const CustomerInvoicesList: FC = ({ placement="top" title={ !!paymentDisputeLostAt - ? translate('TODO: This invoice contains a dispute lost') + ? translate('text_172416478461328edo4vwz05') : undefined } > diff --git a/src/components/invoices/InvoicesList.tsx b/src/components/invoices/InvoicesList.tsx index 99b62ee28..1aedd22e5 100644 --- a/src/components/invoices/InvoicesList.tsx +++ b/src/components/invoices/InvoicesList.tsx @@ -320,7 +320,7 @@ const InvoicesList = ({ placement="top" title={ !!paymentDisputeLostAt - ? translate('TODO: This invoice contains a dispute lost') + ? translate('text_172416478461328edo4vwz05') : undefined } > diff --git a/src/layouts/CustomerInvoiceDetails.tsx b/src/layouts/CustomerInvoiceDetails.tsx index eb7dc7a70..0557eb615 100644 --- a/src/layouts/CustomerInvoiceDetails.tsx +++ b/src/layouts/CustomerInvoiceDetails.tsx @@ -198,21 +198,21 @@ const getErrorMessageFromErrorDetails = ( if (errorCode === ErrorCodesEnum.TaxError) { if (errorDetails === LagoApiError.CurrencyCodeNotSupported) { - return 'Currency defined is not supported for taxes calculation. Please contact the Lago team to resolve this issue.' + return 'text_17238318811308wqpult4i7r' } if ( errorDetails === LagoApiError.CustomerAddressCouldNotResolve || errorDetails === LagoApiError.CustomerAddressCountryNotSupported ) { - return 'Customer address information has issues preventing calculating taxes. Please update the information to generate the invoice.' + return 'text_1723831881130x4cfh6qr6o8' } if (errorDetails === LagoApiError.ProductExternalIdUnknown) { - return 'Anrok connection items mapping has issues preventing calculating taxes. Please update the mapping to generate the invoice.' + return 'text_1723831881130g8hv6qzqe57' } - return 'An issue with your tax provider connection occurred. Please contact the Lago team to solve this issue.' + return 'text_17238318811307ghoc4v7mt9' } } @@ -471,7 +471,7 @@ const CustomerInvoiceDetails = () => { closePopper() }} > - {translate('TODO: Sync invoice')} + {translate('text_1724164767403kyknbaw13mg')} ) : ( <> @@ -646,10 +646,10 @@ const CustomerInvoiceDetails = () => { > - Invoice could not be issued. + {translate('text_1724165657161stcilcabm7x')} - {errorMessage} + {translate(errorMessage)} )} diff --git a/src/pages/InvoiceOverview.tsx b/src/pages/InvoiceOverview.tsx index 00f92bf6a..45298a2ac 100644 --- a/src/pages/InvoiceOverview.tsx +++ b/src/pages/InvoiceOverview.tsx @@ -151,7 +151,7 @@ const InvoiceOverview = memo( await retryInvoice() }} > - {translate('TODO: Sync invoice')} + {translate('text_1724164767403kyknbaw13mg')} ) : ( !hasError && diff --git a/translations/base.json b/translations/base.json index 7f7c7c7f1..ac04fce15 100644 --- a/translations/base.json +++ b/translations/base.json @@ -1455,7 +1455,6 @@ "text_638f74bb4d41e3f1d0201647": "Drafted invoices", "text_638f74bb4d41e3f1d0201649": "{{customerName}}’s draft invoices", "text_638f74bb4d41e3f1d020164b": "{{count}} draft invoices", - "text_63a41a8eabb9ae67047c1bfe": "Draft", "text_63a41a8eabb9ae67047c1c06": "Refresh invoice", "text_63a41a8eabb9ae67047c1c08": "Finalize invoice", "text_63a41a8eabb9ae67047c1c0c": "This invoice is in draft mode. You have until {{issuingDate}} to adjust it, or you can finalize it manually now.", @@ -2342,5 +2341,12 @@ "text_66474fb55f1b6901c7ac7683": "It seems you don’t have the permission to access this page. If you think this is an error contact an admin of your organization.", "text_665deda4babaf700d603ea13": "Leaving without saving", "text_665dedd557dc3c00c62eb83d": "By clicking 'Leave', any unsaved data will be lost. Are you sure you want to continue?", - "text_668513bb1906740145e06abe": "Value already exist, please type a new one." + "text_668513bb1906740145e06abe": "Value already exist, please type a new one.", + "text_1724164767403kyknbaw13mg": "Sync invoice", + "text_172416478461328edo4vwz05": "This invoice contains a dispute lost", + "text_1724165657161stcilcabm7x": "Invoice could not be issued.", + "text_17238318811308wqpult4i7r": "Currency defined is not supported for taxes calculation. Please contact the Lago team to resolve this issue.", + "text_1723831881130x4cfh6qr6o8": "Customer address information has issues preventing calculating taxes. Please update the information to generate the invoice.", + "text_1723831881130g8hv6qzqe57": "Anrok connection items mapping has issues preventing calculating taxes. Please update the mapping to generate the invoice.", + "text_17238318811307ghoc4v7mt9": "An issue with your tax provider connection occurred. Please contact the Lago team to solve this issue." }