bpms_site/.svn/pristine/5e/5ebe14e3b04a7f7aef9266dc054796158f7963a5.svn-base
2025-11-02 16:38:49 +03:30

15 lines
506 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?: string[]): PathLocale;