From 703a1e13db1df2c3d8e0c56c225a28b5802e1b08 Mon Sep 17 00:00:00 2001 From: Ashraf Monshi Date: Sat, 15 May 2021 11:29:39 +0300 Subject: [PATCH] use useLocale --- components/layout/Footer.js | 10 ++++------ components/layout/Header.js | 10 ++++------ components/layout/Layout.js | 11 ++++------- lang/ar-SA.json | 3 +-- 4 files changed, 13 insertions(+), 21 deletions(-) diff --git a/components/layout/Footer.js b/components/layout/Footer.js index 547896c3..85f99e95 100644 --- a/components/layout/Footer.js +++ b/components/layout/Footer.js @@ -1,19 +1,17 @@ import React from 'react'; import classNames from 'classnames'; -import { FormattedMessage, useIntl } from 'react-intl'; +import { FormattedMessage } from 'react-intl'; import Link from 'components/common/Link'; import styles from './Footer.module.css'; import useVersion from 'hooks/useVersion'; +import useLocale from 'hooks/useLocale'; export default function Footer() { const { current } = useVersion(); - const intl = useIntl(); + const [locale] = useLocale(); return ( -