Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 1 reply, has 0 voices.

Last updated by Andreas W. 5 months ago.

Assisted by: Andreas W..

Author Posts
February 19, 2025 at 5:58 am #16721767

neilD-9

Background of the issue:
I am trying to retrieve translated strings using WPML within an AJAX call. The selected language is being correctly detected in the AJAX request. Link to a page where the issue can be seen: hidden link

Symptoms:
The original (default) language strings are returned instead of the expected translations in the AJAX response.

Questions:
Why are the translated strings not appearing in the AJAX response?
How can I ensure the correct translations are applied in AJAX calls?

February 22, 2025 at 3:07 pm #16736482

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Please take a backup of your site and database.

Then go to Plugins > Add new > Commercial and click "Check for WPML Updates".

Install the latest versions of our plugins.

Further, I see that the countries are not translated inside the filter of your example page. Revise if these taxonomies were translated correctly at WPML > Taxonomy Translation.

If this will not solve the issue, please let me know.

Best regards
Andreas

The topic ‘[Closed] WPML String Translations Not Working with AJAX Calls’ is closed to new replies.