Skip to content

Fetching Translated Paths

Example: Fetch translated paths to generate a language switcher

const articles = await client.getTranslatedPaths('/node/1');

Output:

{
"en": "/about",
"de": "/ueber"
}