diff --git a/front/src/components/Write/ArticleEditorMenu.jsx b/front/src/components/Write/ArticleEditorMenu.jsx index 3b077c36d..7919bdb9e 100644 --- a/front/src/components/Write/ArticleEditorMenu.jsx +++ b/front/src/components/Write/ArticleEditorMenu.jsx @@ -1,5 +1,6 @@ import React, { useCallback } from 'react' import { shallowEqual, useDispatch, useSelector } from 'react-redux' +import { useTranslation } from 'react-i18next' import styles from './articleEditorMenu.module.scss' import Stats from './Stats' @@ -13,11 +14,12 @@ export default function ArticleEditorMenu ({ articleInfos, readOnly, compareTo, const articleStats = useSelector(state => state.articleStats, shallowEqual) const dispatch = useDispatch() const toggleExpand = useCallback(() => dispatch({ type: 'ARTICLE_PREFERENCES_TOGGLE', key: 'expandSidebarLeft' }), []) + const { t } = useTranslation() return (