feat(i18n): implement language switching and localization support
- Remove i18next configuration and dependencies - Add language switcher component - Integrate language change functionality with cookies - Update translations for English and Persian - Modify layout and page components to support dynamic language rendering - Refactor Tailwind CSS configuration for custom colors
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
import { useTranslation } from 'react-i18next';
|
||||
const { t } = useTranslation('routes');
|
||||
import { t, translates } from '@/locales/translates';
|
||||
|
||||
export default {
|
||||
home: {
|
||||
title: t('home'),
|
||||
title: t('pages_home_title'),
|
||||
route: () => '/',
|
||||
},
|
||||
about: {
|
||||
title: t('about'),
|
||||
title: t('pages_about_title'),
|
||||
route: () => '/about',
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user