Skip to content

Commit

Permalink
add rtl to html on lang change
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefomar724 committed Jun 27, 2022
1 parent 48d20b2 commit e93b6be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/Header111.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ const Header = () => {
key={index}
href={`/international-coin/${curr1[index][0]}`}
as={Link}
className={`${textAlign}`}
>
<a
className={`${textAlign}`}
style={{
color: 'black',
display: 'flex',
Expand Down
5 changes: 5 additions & 0 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ import '../lib/i18n'
import SSRProvider from 'react-bootstrap/SSRProvider'
import { DefaultSeo } from 'next-seo'
import SEO from '../next-seo.config'
import { useTranslation } from 'react-i18next'

function MyApp({ Component, pageProps }) {
const { i18n } = useTranslation()
if (process.browser) {
document.dir = i18n.dir()
}
return (
<SWRConfig
value={{
Expand Down

0 comments on commit e93b6be

Please sign in to comment.