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:
@@ -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',
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user