This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing issues where related posts in the API still appear in the original language despite having translations, and your code works locally but not on the live site.
Solution:
We recommend you follow these steps:
1. Navigate to WPML-> Languages.
2. Select 'Different languages in directories' in the Language URL Format section.
3. Save your changes.
4. Resave the permalinks.
5. Check the translated endpoint with '/en/'.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, please open a new support ticket. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, you can also visit our support forum at WPML Support Forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 16 replies, has 2 voices.
Last updated by 3 months ago.
Assisted by: Osama Mersal.