feat(i18n): add internationalization support with i18next

- Add i18next and related dependencies for translation support
- Create locale files for English and Farsi languages
- Implement i18n configuration and provider in layout
- Set up route factory and constants for internationalized routes
- Remove test button components and simplify main page
This commit is contained in:
2025-05-31 16:41:12 +03:30
parent b8c3ebcee3
commit cb77aef586
15 changed files with 270 additions and 59 deletions
@@ -0,0 +1,13 @@
import { useTranslation } from 'react-i18next';
const { t } = useTranslation('routes');
export default {
home: {
title: t('home'),
route: () => '/',
},
about: {
title: t('about'),
route: () => '/about',
},
};