toPaths() — astro Function Reference
Architecture documentation for the toPaths() function in index.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 35d3e362_883c_7a23_b100_17b3fd28ea38["toPaths()"] e4a1ef92_c598_36b5_dc33_9ab2535360bc["index.ts"] 35d3e362_883c_7a23_b100_17b3fd28ea38 -->|defined in| e4a1ef92_c598_36b5_dc33_9ab2535360bc 5297b9d5_eec4_624d_fc34_885fea95e9ff["getLocaleRelativeUrlList()"] 5297b9d5_eec4_624d_fc34_885fea95e9ff -->|calls| 35d3e362_883c_7a23_b100_17b3fd28ea38 style 35d3e362_883c_7a23_b100_17b3fd28ea38 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/i18n/index.ts lines 271–279
export function toPaths(locales: Locales): string[] {
return locales.map((loopLocale) => {
if (typeof loopLocale === 'string') {
return loopLocale;
} else {
return loopLocale.path;
}
});
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does toPaths() do?
toPaths() is a function in the astro codebase, defined in packages/astro/src/i18n/index.ts.
Where is toPaths() defined?
toPaths() is defined in packages/astro/src/i18n/index.ts at line 271.
What calls toPaths()?
toPaths() is called by 1 function(s): getLocaleRelativeUrlList.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free