I have created NextJS app using a CMS with multiple languages support. Here I have added a slug to identify the URL in the preview and live version of the CMS. It works fine when I used the same slug for all different languages but not when using a different slug.
Furthermore, it is not working when I change the language from the frontend side. Because the URL will be created with the previously selected language. To fix this issue I need to get the slug from the CMS based on the selected language, and then get the content from the CMS.
Is there any other way we can accomplish this?