I am trying to get translation data of pages from REST API. When callling /wp-json/wp/v2/pages endpoint, I get information about pages inside the website. How can I get information about the translations of that page, if they exist?
To retrieve the info of page/post in each language:
- If you are using the URL format as a directory per language, the URL to retrieve the Post will be: site.com/en/wp-json/wp/v2/posts?status=publish&_embed
- If you are using the language name as a parameter format, you can retrieve the post in each language in this way: - site.com/wp-json/wp/v2/posts?status=publish&_embed&lang=en
Let me know if that helps or if you need further assistance. I will be happy to help.