code format

This commit is contained in:
Pallavi
2025-08-03 12:26:21 +05:30
parent 3fbfe50e09
commit 616dae2d8b

View File

@@ -1,7 +1,7 @@
'use server'; 'use server';
import {cookies, headers} from 'next/headers'; import { cookies, headers } from 'next/headers';
import {Locale, defaultLocale, locales} from '@/i18n/config'; import { Locale, defaultLocale, locales } from '@/i18n/config';
// In this example the locale is read from a cookie. You could alternatively // In this example the locale is read from a cookie. You could alternatively
// also read it from a database, backend service, or any other source. // also read it from a database, backend service, or any other source.
@@ -14,7 +14,7 @@ export async function getUserLocale(): Promise<Locale> {
return cookieLocale as Locale; return cookieLocale as Locale;
} }
const headerList = await headers(); const headerList = await headers();
const acceptLang = headerList.get('accept-language'); const acceptLang = headerList.get('accept-language');
if (acceptLang) { if (acceptLang) {