From 14eac523b2e95b56a4eaf2e75201655670c62048 Mon Sep 17 00:00:00 2001 From: elforjani3 Date: Tue, 8 Jun 2021 19:29:01 +0200 Subject: [PATCH] feat(App): moment locale. --- client/src/components/App.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/components/App.js b/client/src/components/App.js index 9df37df3c..3e4fe3eae 100644 --- a/client/src/components/App.js +++ b/client/src/components/App.js @@ -1,4 +1,5 @@ import React from 'react'; +import moment from 'moment'; import { RawIntlProvider } from 'react-intl'; import { Router, Switch, Route } from 'react-router'; import { createBrowserHistory } from 'history'; @@ -6,6 +7,8 @@ import { QueryClientProvider, QueryClient } from 'react-query'; import { ReactQueryDevtools } from 'react-query/devtools'; import 'style/App.scss'; +import 'moment/locale/ar-ly'; +import 'moment/locale/es-us' import PrivateRoute from 'components/Guards/PrivateRoute'; import Authentication from 'components/Authentication'; @@ -14,6 +17,9 @@ import GlobalErrors from 'containers/GlobalErrors/GlobalErrors'; import intl from 'services/intl'; function App({ locale }) { + moment.locale('ar-ly'); + moment().format('LLLL'); + const history = createBrowserHistory(); const queryConfig = {