refactor: moving locale definition

This commit is contained in:
2024-02-16 17:02:33 +01:00
parent 8992aa76bd
commit 3240f746d1
3 changed files with 6 additions and 3 deletions

View File

@@ -3,6 +3,8 @@ import {getRequestConfig} from 'next-intl/server';
// Can be imported from a shared config
export const locales = ['en', 'hr'];
export const defaultLocale = 'en';
export default getRequestConfig(async ({locale}) => {
// Validate that the incoming `locale` parameter is valid