(locale: string)
| 5 | export const defaultLocale: Locale = "en"; |
| 6 | |
| 7 | export function hasLocale(locale: string): locale is Locale { |
| 8 | return locales.includes(locale as Locale); |
| 9 | } |
| 10 | |
| 11 | export function localizePath(locale: string, pathname: string): string { |
| 12 | if (!hasLocale(locale) || locale === defaultLocale) return pathname; |
no outgoing calls
no test coverage detected