Skip to content

Commit

Permalink
ar(fix) DPCP-121: Locale Parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloreale committed Aug 30, 2024
1 parent b2d0b28 commit 3296cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3296cf8

Please sign in to comment.