diff --git a/packages/astro/src/i18n/index.ts b/packages/astro/src/i18n/index.ts index 694419991b08..a0dcfdff0e9a 100644 --- a/packages/astro/src/i18n/index.ts +++ b/packages/astro/src/i18n/index.ts @@ -168,8 +168,7 @@ export function getLocaleByPath(path: string, locales: Locales): string | undefi const code = locale.codes.at(0); return code; } - } - else if (locale === path) { + } else if (locale === path) { return locale; } }