From f609cb30cf47a886f5cfeb4de169b63dfb40771e Mon Sep 17 00:00:00 2001 From: "a.bouhuolia" Date: Wed, 4 Aug 2021 22:23:32 +0200 Subject: [PATCH] feat: dashboard error boundary localization. --- client/src/components/Dashboard/DashboardErrorBoundary.js | 6 +++--- client/src/lang/ar-ly/index.json | 4 +++- client/src/lang/en/index.json | 4 +++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/client/src/components/Dashboard/DashboardErrorBoundary.js b/client/src/components/Dashboard/DashboardErrorBoundary.js index 111a9e294..4fef5315e 100644 --- a/client/src/components/Dashboard/DashboardErrorBoundary.js +++ b/client/src/components/Dashboard/DashboardErrorBoundary.js @@ -1,11 +1,11 @@ import React from 'react'; -import { Icon } from 'components'; +import { FormattedMessage as T, Icon } from 'components'; export default function DashboardErrorBoundary({}) { return (
-

Sorry about that! Something went wrong

-

If the problem stuck, please contact us as soon as possible.

+

+

) diff --git a/client/src/lang/ar-ly/index.json b/client/src/lang/ar-ly/index.json index dd91027d3..46376f026 100644 --- a/client/src/lang/ar-ly/index.json +++ b/client/src/lang/ar-ly/index.json @@ -1192,5 +1192,7 @@ "New purchase invoice": "فاتورة شراء جديدة", "Sales/Purchases": "المبيعات والمشتريات", "Reports": "التقارير", - "New tasks": "مهام جديدة" + "New tasks": "مهام جديدة", + "sorry_about_that_something_went_wrong": "نتأسف بشأن ذلك! هناك خطأ ما", + "if_the_problem_stuck_please_contact_us_as_soon_as_possible": "إذا تكررت المشكلة اكتر من مرة ، الرجاء الاتصال بنا في أقرب وقت ممكن." } \ No newline at end of file diff --git a/client/src/lang/en/index.json b/client/src/lang/en/index.json index 8a97e806e..d1959570c 100644 --- a/client/src/lang/en/index.json +++ b/client/src/lang/en/index.json @@ -1179,5 +1179,7 @@ "New purchase invoice": "New purchase invoice", "Sales/Purchases": "Sales/Purchases", "Reports": "Reports", - "New tasks": "New tasks" + "New tasks": "New tasks", + "sorry_about_that_something_went_wrong": "Sorry about that! Something went wrong", + "if_the_problem_stuck_please_contact_us_as_soon_as_possible": "If the problem stuck, please contact us as soon as possible." } \ No newline at end of file