Home > @uniformdev/project-map > getRouteAlternateLocalesUrls
getRouteAlternateLocalesUrls() function
Gets all possible locale specific URLs for a composition route response
This is appropriate for generating links to other locale versions of the current composition, such as for alternate language tags, language switchers, etc.
The URLs will be: * Computed based on the attached project map node path * Not include a base URL from the project map, if one is set * If a dynamic locale path segment exists, it will be rewritten automatically to the target locale
Signature:
Parameters
Parameter | Type | Description |
---|---|---|
routeResponse | RouteGetResponse |
Returns:
AlternateLocaleUrls | undefined