Rocky_Mountain_Vending/.pnpm-store/v10/files/09/1eff47193bd8fcb3c8b3c12f158e805bdbaf6f11a7811adc401562f49d9edbfa9bded873577a6f2bbdbb73a487490e52a343efb9ad92a9370d2c75cc6e70fe
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
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>
2026-02-12 16:22:15 -07:00

18 lines
No EOL
542 B
Text

/**
* Normalizes the pathname by removing the locale prefix if any.
*/ export class LocaleRouteNormalizer {
constructor(provider){
this.provider = provider;
}
/**
* Normalizes the pathname by removing the locale prefix if any.
*
* @param pathname The pathname to normalize.
* @returns The pathname without the locale prefix (if any).
*/ normalize(pathname) {
const match = this.provider.analyze(pathname);
return match.pathname;
}
}
//# sourceMappingURL=locale-route-normalizer.js.map