Rocky_Mountain_Vending/.pnpm-store/v10/files/d8/2d4a22fe9f98b1591420cea2beffa70e3185c0e283e96c64a5e91f8a143f8438f5023bc53220c2ad4e9d689078480d73d12bb82cf54adb82106d37f07afb53
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

36 lines
No EOL
1.5 KiB
Text

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "getDomainLocale", {
enumerable: true,
get: function() {
return getDomainLocale;
}
});
const _normalizetrailingslash = require("./normalize-trailing-slash");
const basePath = process.env.__NEXT_ROUTER_BASEPATH || '';
function getDomainLocale(path, locale, locales, domainLocales) {
if (process.env.__NEXT_I18N_SUPPORT) {
const normalizeLocalePath = require('./normalize-locale-path').normalizeLocalePath;
const detectDomainLocale = require('./detect-domain-locale').detectDomainLocale;
const target = locale || normalizeLocalePath(path, locales).detectedLocale;
const domain = detectDomainLocale(domainLocales, undefined, target);
if (domain) {
const proto = `http${domain.http ? '' : 's'}://`;
const finalLocale = target === domain.defaultLocale ? '' : `/${target}`;
return `${proto}${domain.domain}${(0, _normalizetrailingslash.normalizePathTrailingSlash)(`${basePath}${finalLocale}${path}`)}`;
}
return false;
} else {
return false;
}
}
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=get-domain-locale.js.map