diff --git a/next-i18next.config.js b/next-i18next.config.js index 99a975092..9364e6b38 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -25,6 +25,8 @@ module.exports = { 'uk', 'zh', 'el', + 'sk', + 'no', ], localePath: path.resolve('./public/locales'), fallbackLng: 'en', diff --git a/src/pages/404.tsx b/src/pages/404.tsx index aadf66175..17c5b6966 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -9,7 +9,6 @@ import { } from '@mantine/core'; import React from 'react'; -import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; import Link from 'next/link'; const useStyles = createStyles((theme) => ({ @@ -94,12 +93,3 @@ export default function Custom404() { ); } - -export async function getStaticProps({ locale }: { locale: string }) { - return { - props: { - ...(await serverSideTranslations(locale, ['common'])), - // Will be passed to the page component as props - }, - }; -} diff --git a/src/tools/language.ts b/src/tools/language.ts index f0d0e9471..8974e62a4 100644 --- a/src/tools/language.ts +++ b/src/tools/language.ts @@ -75,6 +75,20 @@ export const languages: Language[] = [ translatedName: 'LOLCAT', emoji: '🐱', }, + // Norwegian + { + shortName: 'no', + originalName: 'Norsk', + translatedName: 'Norwegian', + emoji: '🇳🇴', + }, + // Slovak + { + shortName: 'sk', + originalName: 'Slovenčina', + translatedName: 'Slovak', + emoji: '🇸🇰', + }, { shortName: 'nl', originalName: 'Nederlands',