diff --git a/src/lib/i18n/locales.ts b/src/lib/i18n/locales.ts index 864c2c6..9b45baa 100644 --- a/src/lib/i18n/locales.ts +++ b/src/lib/i18n/locales.ts @@ -32,8 +32,6 @@ export function getPathWithoutLocale(pathname: string): string { } export function buildLocalePath(locale: Locale, path: string): string { - if (locale === DEFAULT_LOCALE) { - return path === "/" ? "/" : path; - } - return `/${locale}${path === "/" ? "" : path}`; + const pathPart = path === "/" ? "" : path; + return `/${locale}${pathPart}`; }