|
@@ -1,4 +1,5 @@
|
|
|
import { useContext } from 'react';
|
|
|
+import { useTranslation } from 'react-i18next';
|
|
|
import { rootContext } from '../../context/Root';
|
|
|
|
|
|
const Dashboard = () => {
|
|
@@ -17,9 +18,11 @@ const Dashboard = () => {
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+ const { t } = useTranslation('btn');
|
|
|
+
|
|
|
return (
|
|
|
<section>
|
|
|
- <button onClick={openDialog}>open</button>
|
|
|
+ <button onClick={openDialog}>{t('confirm')}</button>
|
|
|
</section>
|
|
|
);
|
|
|
};
|