added language switcher

This commit is contained in:
2024-02-17 08:32:53 +01:00
parent 4f6d31a7c1
commit 1c66940287
6 changed files with 47 additions and 15 deletions

View File

@@ -5,6 +5,11 @@ import { Formats, TranslationValues } from 'next-intl';
// Can be imported from a shared config
export const locales = ['en', 'hr'];
export const localeNames:Record<string,string> = {
en: 'English',
hr: 'Hrvatski'
};
export const defaultLocale = 'en';
/** Templating function type as returned by `useTemplate` and `getTranslations` */