From df46525ccf9f2c4b1690aff54d4c254be8b144ae Mon Sep 17 00:00:00 2001 From: yznahmad Date: Sat, 21 Jun 2025 04:35:40 +0300 Subject: [PATCH] Add 30 n12345 --- webapp/src/components/dashboard/home/incomeOutcome.tsx | 2 +- .../src/components/dashboard/home/servicesSubscriptions.tsx | 2 +- webapp/src/components/dashboard/home/workersJobTypes.tsx | 2 +- webapp/src/messages/ar.json | 4 +++- webapp/src/messages/en.json | 4 +++- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/webapp/src/components/dashboard/home/incomeOutcome.tsx b/webapp/src/components/dashboard/home/incomeOutcome.tsx index c5fcd9b..2ea9d7a 100644 --- a/webapp/src/components/dashboard/home/incomeOutcome.tsx +++ b/webapp/src/components/dashboard/home/incomeOutcome.tsx @@ -49,7 +49,7 @@ export default function IncomeOutcome() }], annotations: { points: [{ - x: t('incomes'), + x: t('income'), seriesIndex: 0, label: { borderColor: '#775DD0', diff --git a/webapp/src/components/dashboard/home/servicesSubscriptions.tsx b/webapp/src/components/dashboard/home/servicesSubscriptions.tsx index 9d0c637..41f9eeb 100644 --- a/webapp/src/components/dashboard/home/servicesSubscriptions.tsx +++ b/webapp/src/components/dashboard/home/servicesSubscriptions.tsx @@ -13,7 +13,7 @@ export default function ServicesSubscriptions() const themeType = useAppSelector((state) => state.themeTypeReducer.value.themeType) // declare global variables const cookies = new Cookies(); - const t = useTranslations(); + const t = useTranslations('statistics'); const locale = cookies.get("NEXT_LOCALE") const isRtl = locale == 'ar' ? true : false const isDark = themeType == 'dark' ? true : false diff --git a/webapp/src/components/dashboard/home/workersJobTypes.tsx b/webapp/src/components/dashboard/home/workersJobTypes.tsx index cf72b7b..e810a8d 100644 --- a/webapp/src/components/dashboard/home/workersJobTypes.tsx +++ b/webapp/src/components/dashboard/home/workersJobTypes.tsx @@ -13,7 +13,7 @@ export default function WorkersJobTypes() const themeType = useAppSelector((state) => state.themeTypeReducer.value.themeType) // declare global variables const cookies = new Cookies(); - const t = useTranslations(); + const t = useTranslations('statistics'); const locale = cookies.get("NEXT_LOCALE") const isRtl = locale == 'ar' ? true : false const isDark = themeType == 'dark' ? true : false diff --git a/webapp/src/messages/ar.json b/webapp/src/messages/ar.json index ef77b6f..cbe1d49 100644 --- a/webapp/src/messages/ar.json +++ b/webapp/src/messages/ar.json @@ -394,6 +394,8 @@ "female": "أنثى", "total": "الإجمالي", "active": "نشط", - "inactive": "غير نشط" + "inactive": "غير نشط", + "services": "الخدمات", + "workers": "العمال" } } \ No newline at end of file diff --git a/webapp/src/messages/en.json b/webapp/src/messages/en.json index 4011561..afbaf9b 100644 --- a/webapp/src/messages/en.json +++ b/webapp/src/messages/en.json @@ -398,6 +398,8 @@ "female": "Female", "total": "Total", "active": "Active", - "inactive": "Inactive" + "inactive": "Inactive", + "services": "Services", + "workers": "Workers" } } \ No newline at end of file