WPML

Overview of the Issue

You can add strings to your WordPress site and make them available for translations using wp_set_script_translations() (opens in a new tab). However, currently it is not possible for WPML to generate the necessary translation JSON file.

Workaround

This issue is fixed in WPML 4.9.0. Updating solves it on your site, so you only need this workaround if you can’t update yet.

Since WPML 4.9.0, you can scan JavaScript strings after activating the Detect strings in JavaScript files feature. Then, you can translate them in “Other strings” section of the Translation Management Dashboard.

All known issues

Still Seeing This Issue?

If updating doesn’t fix it, ask a support question and we’ll look into it with you.