feat: dashboard error boundary localization.

This commit is contained in:
a.bouhuolia
2021-08-04 22:23:32 +02:00
parent 43b33105fa
commit f609cb30cf
3 changed files with 9 additions and 5 deletions

View File

@@ -1,11 +1,11 @@
import React from 'react';
import { Icon } from 'components';
import { FormattedMessage as T, Icon } from 'components';
export default function DashboardErrorBoundary({}) {
return (
<div class="dashboard__error-boundary">
<h1>Sorry about that! Something went wrong</h1>
<p>If the problem stuck, please <a href="#">contact us</a> as soon as possible.</p>
<h1><T id={'sorry_about_that_something_went_wrong'} /></h1>
<p><T id={'if_the_problem_stuck_please_contact_us_as_soon_as_possible'} /></p>
<Icon icon="bigcapital" height={30} width={160} />
</div>
)

View File

@@ -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": "إذا تكررت المشكلة اكتر من مرة ، الرجاء الاتصال بنا في أقرب وقت ممكن."
}

View File

@@ -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."
}