/opt/canhelp/node_modules/next/dist/esm/shared/lib/i18n
NameSizeModeActions
detect-domain-locale.js7440644editdlrm
detect-domain-locale.js.map14280644editdlrm
get-locale-redirect.js28390644editdlrm
get-locale-redirect.js.map57010644editdlrm
normalize-locale-path.js19930644editdlrm
normalize-locale-path.js.map31820644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/esm/shared/lib/i18n/detect-domain-locale.js (744B)
export function detectDomainLocale(domainItems, hostname, detectedLocale) { if (!domainItems) return; if (detectedLocale) { detectedLocale = detectedLocale.toLowerCase(); } for (const item of domainItems){ var _item_domain, _item_locales; // remove port if present const domainHostname = (_item_domain = item.domain) == null ? void 0 : _item_domain.split(':', 1)[0].toLowerCase(); if (hostname === domainHostname || detectedLocale === item.defaultLocale.toLowerCase() || ((_item_locales = item.locales) == null ? void 0 : _item_locales.some((locale)=>locale.toLowerCase() === detectedLocale))) { return item; } } } //# sourceMappingURL=detect-domain-locale.js.map