Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
515 B
Text
14 lines
515 B
Text
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;
|