localeHasntDomain() — astro Function Reference
Architecture documentation for the localeHasntDomain() function in middleware.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD b0e490ed_fdbd_4d8f_517c_57abc53f5af4["localeHasntDomain()"] 600912f7_037f_fe87_000e_5a651ef00995["middleware.ts"] b0e490ed_fdbd_4d8f_517c_57abc53f5af4 -->|defined in| 600912f7_037f_fe87_000e_5a651ef00995 db3f5a0c_7643_a8c2_6cdf_1e2659eca2df["createI18nMiddleware()"] db3f5a0c_7643_a8c2_6cdf_1e2659eca2df -->|calls| b0e490ed_fdbd_4d8f_517c_57abc53f5af4 style b0e490ed_fdbd_4d8f_517c_57abc53f5af4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/i18n/middleware.ts lines 159–166
function localeHasntDomain(i18n: SSRManifestI18n, currentLocale: string | undefined) {
for (const domainLocale of Object.values(i18n.domainLookupTable)) {
if (domainLocale === currentLocale) {
return false;
}
}
return true;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does localeHasntDomain() do?
localeHasntDomain() is a function in the astro codebase, defined in packages/astro/src/i18n/middleware.ts.
Where is localeHasntDomain() defined?
localeHasntDomain() is defined in packages/astro/src/i18n/middleware.ts at line 159.
What calls localeHasntDomain()?
localeHasntDomain() is called by 1 function(s): createI18nMiddleware.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free