From 3296cf8c3f3d6d6b4e1278346841c242f7c36bc4 Mon Sep 17 00:00:00 2001 From: Angelo Reale <12191809+angeloreale@users.noreply.github.com> Date: Fri, 30 Aug 2024 15:25:31 +0100 Subject: [PATCH] ar(fix) DPCP-121: Locale Parsing --- src/app/[locale]/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx index d6e786bf..51643379 100644 --- a/src/app/[locale]/layout.tsx +++ b/src/app/[locale]/layout.tsx @@ -52,7 +52,7 @@ export default async function RootLayout({ children, params }: { children: React if (localeSplit?.length > 0) { return { ...entry, - name: entry.name[localeSplit[0]] || entry.name[localeSplit[1]], + name: entry.name[localeSplit[1]] || entry.name[localeSplit[0]], }; } else { return {