Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JakiChen authored Jan 22, 2025
1 parent fa01e7a commit a3455c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export function getLocaleByPath(path: string, locales: Locales): string {
* - transforms all letters to be lower case;
*/
export function normalizeTheLocale(locale: string): string {
return locale?.replace('_', '-').toLowerCase();
return locale?.replaceAll('_', '-').toLowerCase();
}

/**
Expand Down

0 comments on commit a3455c5

Please sign in to comment.