From 2501d4d9b72a061e85ec89123361f813c1efcaa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Loipf=C3=BChrer?= Date: Thu, 4 Jan 2024 02:46:11 +0100 Subject: [PATCH] feat(frontend): add german translations --- .../accounts/AccountTransactionList.tsx | 2 - .../accounts/ClearingAccountDetail.tsx | 2 +- .../accounts/AccountDetail/AccountInfo.tsx | 2 +- .../PersonalAccountList.tsx | 4 +- frontend/libs/translations/src/lib/de.ts | 188 ++++++++++++++++-- frontend/libs/translations/src/lib/en.ts | 2 +- 6 files changed, 181 insertions(+), 19 deletions(-) diff --git a/frontend/apps/web/src/components/accounts/AccountTransactionList.tsx b/frontend/apps/web/src/components/accounts/AccountTransactionList.tsx index 72d5c86b..1961d45f 100644 --- a/frontend/apps/web/src/components/accounts/AccountTransactionList.tsx +++ b/frontend/apps/web/src/components/accounts/AccountTransactionList.tsx @@ -58,5 +58,3 @@ export const AccountTransactionList: React.FC = ({ groupId, accountId }) ); }; - -export default AccountTransactionList; diff --git a/frontend/apps/web/src/components/accounts/ClearingAccountDetail.tsx b/frontend/apps/web/src/components/accounts/ClearingAccountDetail.tsx index 8c478497..bab75d81 100644 --- a/frontend/apps/web/src/components/accounts/ClearingAccountDetail.tsx +++ b/frontend/apps/web/src/components/accounts/ClearingAccountDetail.tsx @@ -28,7 +28,7 @@ export const ClearingAccountDetail: React.FC = ({ groupId, accountId }) = return ( diff --git a/frontend/apps/web/src/pages/accounts/AccountDetail/AccountInfo.tsx b/frontend/apps/web/src/pages/accounts/AccountDetail/AccountInfo.tsx index b1074cc7..1dc5523c 100644 --- a/frontend/apps/web/src/pages/accounts/AccountDetail/AccountInfo.tsx +++ b/frontend/apps/web/src/pages/accounts/AccountDetail/AccountInfo.tsx @@ -60,7 +60,7 @@ export const AccountInfo: React.FC = ({ groupId, accountId }) => { navigate(getAccountListLink(groupId, account.type)); }; - const accountTypeLabel = account.type === "clearing" ? "event" : "account"; + const accountTypeLabel = account.type === "clearing" ? t("accounts.event") : t("accounts.account"); const navigateBack = () => { navigate(-1); diff --git a/frontend/apps/web/src/pages/accounts/PersonalAccountList/PersonalAccountList.tsx b/frontend/apps/web/src/pages/accounts/PersonalAccountList/PersonalAccountList.tsx index f4aa3311..28784391 100644 --- a/frontend/apps/web/src/pages/accounts/PersonalAccountList/PersonalAccountList.tsx +++ b/frontend/apps/web/src/pages/accounts/PersonalAccountList/PersonalAccountList.tsx @@ -137,11 +137,11 @@ export const PersonalAccountList: React.FC = ({ groupId }) => { } /> - Sort by + {t("common.sortBy")}