feat: implement internationalization support by updating locale files and adding language switch component
This commit is contained in:
@@ -10,12 +10,12 @@ import { useTranslations } from 'next-intl';
|
||||
import { useParams } from 'next/navigation';
|
||||
import { getQuickLinks } from '@/assets/constants/footerMenu/quickLinks.const';
|
||||
import { getWhoAreWeLinks } from '@/assets/constants/footerMenu/whoAreWe.const';
|
||||
import { TLocales } from '@/locales/translates';
|
||||
import { TLocales } from '@/models/layout';
|
||||
|
||||
export default function Footer() {
|
||||
const t = useTranslations();
|
||||
const params = useParams();
|
||||
const locale = params.locale as TLocales;
|
||||
const locale = (params.locale as TLocales) || 'en';
|
||||
|
||||
const quickLinks = getQuickLinks(t, locale);
|
||||
const whoAreWeLinks = getWhoAreWeLinks(t, locale);
|
||||
|
||||
Reference in New Issue
Block a user