Home / Function/ getLocaleRelativeUrlList() — astro Function Reference

getLocaleRelativeUrlList() — astro Function Reference

Architecture documentation for the getLocaleRelativeUrlList() function in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  5297b9d5_eec4_624d_fc34_885fea95e9ff["getLocaleRelativeUrlList()"]
  e4a1ef92_c598_36b5_dc33_9ab2535360bc["index.ts"]
  5297b9d5_eec4_624d_fc34_885fea95e9ff -->|defined in| e4a1ef92_c598_36b5_dc33_9ab2535360bc
  35d3e362_883c_7a23_b100_17b3fd28ea38["toPaths()"]
  5297b9d5_eec4_624d_fc34_885fea95e9ff -->|calls| 35d3e362_883c_7a23_b100_17b3fd28ea38
  5ea57fa1_9639_1ac7_9ffa_757ade8153be["getLocaleRelativeUrl()"]
  5297b9d5_eec4_624d_fc34_885fea95e9ff -->|calls| 5ea57fa1_9639_1ac7_9ffa_757ade8153be
  style 5297b9d5_eec4_624d_fc34_885fea95e9ff fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/i18n/index.ts lines 156–164

export function getLocaleRelativeUrlList({
	locales: _locales,
	...rest
}: GetLocalesRelativeUrlList) {
	const locales = toPaths(_locales);
	return locales.map((locale) => {
		return getLocaleRelativeUrl({ ...rest, locales, locale });
	});
}

Domain

Subdomains

Frequently Asked Questions

What does getLocaleRelativeUrlList() do?
getLocaleRelativeUrlList() is a function in the astro codebase, defined in packages/astro/src/i18n/index.ts.
Where is getLocaleRelativeUrlList() defined?
getLocaleRelativeUrlList() is defined in packages/astro/src/i18n/index.ts at line 156.
What does getLocaleRelativeUrlList() call?
getLocaleRelativeUrlList() calls 2 function(s): getLocaleRelativeUrl, toPaths.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free