Add en translation file for about page

This commit is contained in:
Daniele Pancottini
2022-12-22 09:48:47 +01:00
parent ef8bb5914e
commit 7fb332ad94
11 changed files with 295 additions and 111 deletions

View File

@@ -15,18 +15,18 @@ interface LOCALE_DATA {
}
const LOCALES_MAP: Record<string, LOCALE_DATA> = {
es: {
name: 'Español',
it: {
name: 'Italiano',
img: {
filename: 'flag-es-co.svg',
alt: 'Bandera Colombiana',
filename: 'flag-it.svg',
alt: 'Bandiera Italia',
},
},
'en-US': {
en: {
name: 'English',
img: {
filename: 'flag-en-us.svg',
alt: 'US Flag',
filename: 'flag-en.svg',
alt: 'UK Flag',
},
},
}
@@ -36,7 +36,7 @@ const I18nWidget: FC = () => {
const {
locale,
locales,
defaultLocale = 'en-US',
defaultLocale = 'it',
asPath: currentPath,
} = useRouter()