requestHasLocale() — astro Function Reference
Architecture documentation for the requestHasLocale() function in index.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 66b95935_11c6_9023_fb7d_6a36ecf61752["requestHasLocale()"] e4a1ef92_c598_36b5_dc33_9ab2535360bc["index.ts"] 66b95935_11c6_9023_fb7d_6a36ecf61752 -->|defined in| e4a1ef92_c598_36b5_dc33_9ab2535360bc 305c67de_c541_704f_20e8_2d1dc4e1cb92["pathHasLocale()"] 66b95935_11c6_9023_fb7d_6a36ecf61752 -->|calls| 305c67de_c541_704f_20e8_2d1dc4e1cb92 style 66b95935_11c6_9023_fb7d_6a36ecf61752 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/i18n/index.ts lines 12–16
export function requestHasLocale(locales: Locales) {
return function (context: APIContext): boolean {
return pathHasLocale(context.url.pathname, locales);
};
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does requestHasLocale() do?
requestHasLocale() is a function in the astro codebase, defined in packages/astro/src/i18n/index.ts.
Where is requestHasLocale() defined?
requestHasLocale() is defined in packages/astro/src/i18n/index.ts at line 12.
What does requestHasLocale() call?
requestHasLocale() calls 1 function(s): pathHasLocale.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free