Rocky_Mountain_Vending/.pnpm-store/v10/files/be/68748a5dd4219939c110c601624e5c05c86198c8278ee2d9b87258ce31f539fc3d83367c64f2d1fe28d3bcda54ce5d361c71c1b0d91a4245e18aab95293d77
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

28 lines
No EOL
1.1 KiB
Text

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "removeLocale", {
enumerable: true,
get: function() {
return removeLocale;
}
});
const _parsepath = require("../shared/lib/router/utils/parse-path");
function removeLocale(path, locale) {
if (process.env.__NEXT_I18N_SUPPORT) {
const { pathname } = (0, _parsepath.parsePath)(path);
const pathLower = pathname.toLowerCase();
const localeLower = locale?.toLowerCase();
return locale && (pathLower.startsWith(`/${localeLower}/`) || pathLower === `/${localeLower}`) ? `${pathname.length === locale.length + 1 ? `/` : ``}${path.slice(locale.length + 1)}` : path;
}
return path;
}
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
Object.defineProperty(exports.default, '__esModule', { value: true });
Object.assign(exports.default, exports);
module.exports = exports.default;
}
//# sourceMappingURL=remove-locale.js.map