Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Agrim Jain authored and Agrim Jain committed Jun 6, 2024
1 parent 07dda1e commit 1689dd7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ const replaceLocale = (path, newLocale, locales, trailingSlash) => {
if (newLocale === 'en') {
segments.shift();
} else {
console.log('www', segments[0], 'www');
segments[0] = newLocale;
}
} else if (newLocale !== segments[0]) {
} else if (newLocale !== 'en') {
console.log('www', segments[0], 'else if');

segments.unshift(newLocale);
}
console.log('newLocale', newLocale);
Expand Down

0 comments on commit 1689dd7

Please sign in to comment.