Cleaned up language files.

This commit is contained in:
Mike Cao 2021-11-04 17:09:03 -07:00
parent 33b87b41a9
commit 92b205b7b7
6 changed files with 50 additions and 94 deletions

View file

@ -3,11 +3,9 @@ import Head from 'next/head';
import Header from 'components/layout/Header';
import Footer from 'components/layout/Footer';
import useLocale from 'hooks/useLocale';
import { rtlLocales } from 'lib/lang';
export default function Layout({ title, children, header = true, footer = true }) {
const { locale } = useLocale();
const dir = rtlLocales.includes(locale) ? 'rtl' : 'ltr';
const { dir } = useLocale();
return (
<>