added language switcher
This commit is contained in:
@@ -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` */
|
||||
|
||||
Reference in New Issue
Block a user