From 820b363f792e22738db88e95d060d56cfcff3009 Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Thu, 22 Aug 2024 20:49:15 +0200 Subject: [PATCH] feat: change banking service language --- .../src/components/BankAccounts/index.tsx | 2 +- .../webapp/src/constants/cashflowOptions.tsx | 12 +++--- packages/webapp/src/constants/sidebarMenu.tsx | 4 +- .../AccountTransactionsActionsBar.tsx | 4 +- .../PendingTransactions/_hooks.tsx | 4 +- .../UncategorizedTransactions/hooks.tsx | 4 +- .../AccountTransactions/components.tsx | 6 +-- .../CashFlowAccountsActionsBar.tsx | 4 +- packages/webapp/src/lang/ar/index.json | 32 +++++++-------- packages/webapp/src/lang/en/index.json | 40 +++++++++---------- packages/webapp/src/routes/dashboard.tsx | 4 +- 11 files changed, 58 insertions(+), 58 deletions(-) diff --git a/packages/webapp/src/components/BankAccounts/index.tsx b/packages/webapp/src/components/BankAccounts/index.tsx index 02f5f5697..e83c3946c 100644 --- a/packages/webapp/src/components/BankAccounts/index.tsx +++ b/packages/webapp/src/components/BankAccounts/index.tsx @@ -80,7 +80,7 @@ export function BankAccount({ {uncategorizedTransactionsCount > 0 && ( diff --git a/packages/webapp/src/constants/cashflowOptions.tsx b/packages/webapp/src/constants/cashflowOptions.tsx index 110c8b8ac..5faaa629b 100644 --- a/packages/webapp/src/constants/cashflowOptions.tsx +++ b/packages/webapp/src/constants/cashflowOptions.tsx @@ -3,30 +3,30 @@ import intl from 'react-intl-universal'; export const getAddMoneyInOptions = () => [ { - name: intl.get('cash_flow.owner_contribution'), + name: intl.get('banking.owner_contribution'), value: 'owner_contribution', }, { - name: intl.get('cash_flow.other_income'), + name: intl.get('banking.other_income'), value: 'other_income', }, { - name: intl.get('cash_flow.transfer_form_account'), + name: intl.get('banking.transfer_form_account'), value: 'transfer_from_account', }, ]; export const getAddMoneyOutOptions = () => [ { - name: intl.get('cash_flow.owner_drawings'), + name: intl.get('banking.owner_drawings'), value: 'OwnerDrawing', }, { - name: intl.get('cash_flow.expenses'), + name: intl.get('banking.expenses'), value: 'other_expense', }, { - name: intl.get('cash_flow.transfer_to_account'), + name: intl.get('banking.transfer_to_account'), value: 'transfer_to_account', }, ]; diff --git a/packages/webapp/src/constants/sidebarMenu.tsx b/packages/webapp/src/constants/sidebarMenu.tsx index f81322c42..de14f26ac 100644 --- a/packages/webapp/src/constants/sidebarMenu.tsx +++ b/packages/webapp/src/constants/sidebarMenu.tsx @@ -441,12 +441,12 @@ export const SidebarMenu = [ // # Cashflow // --------------- { - text: , + text: , type: ISidebarMenuItemType.Overlay, overlayId: ISidebarMenuOverlayIds.Cashflow, children: [ { - text: , + text: , type: ISidebarMenuItemType.Group, children: [ { diff --git a/packages/webapp/src/containers/CashFlow/AccountTransactions/AccountTransactionsActionsBar.tsx b/packages/webapp/src/containers/CashFlow/AccountTransactions/AccountTransactionsActionsBar.tsx index be05ce22e..d8d7df5d6 100644 --- a/packages/webapp/src/containers/CashFlow/AccountTransactions/AccountTransactionsActionsBar.tsx +++ b/packages/webapp/src/containers/CashFlow/AccountTransactions/AccountTransactionsActionsBar.tsx @@ -227,7 +227,7 @@ function AccountTransactionsActionsBar({ } + text={} buttonProps={{ icon: , }} @@ -235,7 +235,7 @@ function AccountTransactionsActionsBar({ } + text={} buttonProps={{ icon: , }} diff --git a/packages/webapp/src/containers/CashFlow/AccountTransactions/PendingTransactions/_hooks.tsx b/packages/webapp/src/containers/CashFlow/AccountTransactions/PendingTransactions/_hooks.tsx index 2ea2e20f3..4863273f1 100644 --- a/packages/webapp/src/containers/CashFlow/AccountTransactions/PendingTransactions/_hooks.tsx +++ b/packages/webapp/src/containers/CashFlow/AccountTransactions/PendingTransactions/_hooks.tsx @@ -41,7 +41,7 @@ export function usePendingTransactionsTableColumns() { }, { id: 'deposit', - Header: intl.get('cash_flow.label.deposit'), + Header: intl.get('banking.label.deposit'), accessor: 'formatted_deposit_amount', width: 40, className: 'deposit', @@ -51,7 +51,7 @@ export function usePendingTransactionsTableColumns() { }, { id: 'withdrawal', - Header: intl.get('cash_flow.label.withdrawal'), + Header: intl.get('banking.label.withdrawal'), accessor: 'formatted_withdrawal_amount', className: 'withdrawal', width: 40, diff --git a/packages/webapp/src/containers/CashFlow/AccountTransactions/UncategorizedTransactions/hooks.tsx b/packages/webapp/src/containers/CashFlow/AccountTransactions/UncategorizedTransactions/hooks.tsx index 6b6f56339..5054878f2 100644 --- a/packages/webapp/src/containers/CashFlow/AccountTransactions/UncategorizedTransactions/hooks.tsx +++ b/packages/webapp/src/containers/CashFlow/AccountTransactions/UncategorizedTransactions/hooks.tsx @@ -121,7 +121,7 @@ export function useAccountUncategorizedTransactionsColumns() { }, { id: 'deposit', - Header: intl.get('cash_flow.label.deposit'), + Header: intl.get('banking.label.deposit'), accessor: 'formatted_deposit_amount', width: 40, className: 'deposit', @@ -131,7 +131,7 @@ export function useAccountUncategorizedTransactionsColumns() { }, { id: 'withdrawal', - Header: intl.get('cash_flow.label.withdrawal'), + Header: intl.get('banking.label.withdrawal'), accessor: 'formatted_withdrawal_amount', className: 'withdrawal', width: 40, diff --git a/packages/webapp/src/containers/CashFlow/AccountTransactions/components.tsx b/packages/webapp/src/containers/CashFlow/AccountTransactions/components.tsx index 51ae30c5e..e63775359 100644 --- a/packages/webapp/src/containers/CashFlow/AccountTransactions/components.tsx +++ b/packages/webapp/src/containers/CashFlow/AccountTransactions/components.tsx @@ -116,7 +116,7 @@ export function useAccountTransactionsColumns() { }, { id: 'deposit', - Header: intl.get('cash_flow.label.deposit'), + Header: intl.get('banking.label.deposit'), accessor: 'formatted_deposit', width: 110, className: 'deposit', @@ -126,7 +126,7 @@ export function useAccountTransactionsColumns() { }, { id: 'withdrawal', - Header: intl.get('cash_flow.label.withdrawal'), + Header: intl.get('banking.label.withdrawal'), accessor: 'formatted_withdrawal', className: 'withdrawal', width: 150, @@ -136,7 +136,7 @@ export function useAccountTransactionsColumns() { }, { id: 'running_balance', - Header: intl.get('cash_flow.label.running_balance'), + Header: intl.get('banking.label.running_balance'), accessor: 'formatted_running_balance', className: 'running_balance', width: 150, diff --git a/packages/webapp/src/containers/CashFlow/CashFlowAccounts/CashFlowAccountsActionsBar.tsx b/packages/webapp/src/containers/CashFlow/CashFlowAccounts/CashFlowAccountsActionsBar.tsx index 33400e653..d9acd3dd8 100644 --- a/packages/webapp/src/containers/CashFlow/CashFlowAccounts/CashFlowAccountsActionsBar.tsx +++ b/packages/webapp/src/containers/CashFlow/CashFlowAccounts/CashFlowAccountsActionsBar.tsx @@ -78,13 +78,13 @@ function CashFlowAccountsActionsBar({