Resolved
Reported for: WPML Multilingual & Multicurrency for WooCommerce 4.6.6
Resolved in: WPML 4.9.0
Overview of the issue
You can add strings to your WordPress site and make them available for translations using wp_set_script_translations(). However, currently it is not possible for WPML to generate the necessary translation JSON file.
Workaround
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.