getRelativeLocaleUrl() — astro Function Reference
Architecture documentation for the getRelativeLocaleUrl() function in i18n.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD ad25ee3a_0dc2_8f4c_8828_c2cb3e861fbe["getRelativeLocaleUrl()"] 113cc879_696f_ac71_941f_004a5fb4282c["i18n.ts"] ad25ee3a_0dc2_8f4c_8828_c2cb3e861fbe -->|defined in| 113cc879_696f_ac71_941f_004a5fb4282c style ad25ee3a_0dc2_8f4c_8828_c2cb3e861fbe fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/virtual-modules/i18n.ts lines 58–70
export const getRelativeLocaleUrl = (locale: string, path?: string, options?: GetLocaleOptions) =>
I18nInternals.getLocaleRelativeUrl({
locale,
path,
base,
trailingSlash,
format,
defaultLocale,
locales,
strategy,
domains,
...options,
});
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getRelativeLocaleUrl() do?
getRelativeLocaleUrl() is a function in the astro codebase, defined in packages/astro/src/virtual-modules/i18n.ts.
Where is getRelativeLocaleUrl() defined?
getRelativeLocaleUrl() is defined in packages/astro/src/virtual-modules/i18n.ts at line 58.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free