Files
vercel_dashboard_example/.pnpm-store/v11/files/ba/d9e560b56a27e9747b3f432edd57b5e6d755dd7e168d6fb1e41a0fa32ddea5f0efc43ace9463b2b444830d66ec21448bb901ef1afbbd6219b3db017812bcb0
T
2026-05-12 14:53:15 +00:00

15 lines
515 B
Plaintext

export interface PathLocale {
detectedLocale?: string;
pathname: string;
}
/**
* For a pathname that may include a locale from a list of locales, it
* removes the locale from the pathname returning it alongside with the
* detected locale.
*
* @param pathname A pathname that may include a locale.
* @param locales A list of locales.
* @returns The detected locale and pathname without locale
*/
export declare function normalizeLocalePath(pathname: string, locales?: readonly string[]): PathLocale;