mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 00:55:37 +01:00
use useLocale
This commit is contained in:
parent
0c13f8d358
commit
703a1e13db
4 changed files with 13 additions and 21 deletions
|
|
@ -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 (
|
||||
<footer
|
||||
className="container"
|
||||
dir={intl.formatMessage({ id: 'metrics.dir', defaultMessage: 'ltr' })}
|
||||
>
|
||||
<footer className="container" dir={locale === 'ar-SA' ? 'rtl' : 'ltr'}>
|
||||
<div className={classNames(styles.footer, 'row')}>
|
||||
<div className="col-12 col-md-4" />
|
||||
<div className="col-12 col-md-4">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue