You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Therefore the translation json files must be named like this (naming convention by WordPress): ${domain}-${locale}-${handle}.json
But because wpackio dynamically generates the handle, this is not possible.
I know there was a identifier config option to specify the handle in the past, but this was removed because of reasons I don't know much about. But I think we need this back.
The text was updated successfully, but these errors were encountered:
derweili
changed the title
wp_set_script_translations usage not possible with wpack script
wp_set_script_translations usage not possible with wpackio script
Nov 16, 2021
WordPress 5.0 added the new
wp_set_script_translations()
for translating strings in JavaScript.Read more here: https://make.wordpress.org/core/2018/11/09/new-javascript-i18n-support-in-wordpress/
Therefore the translation json files must be named like this (naming convention by WordPress):
${domain}-${locale}-${handle}.json
But because wpackio dynamically generates the handle, this is not possible.
I know there was a identifier config option to specify the handle in the past, but this was removed because of reasons I don't know much about. But I think we need this back.
The text was updated successfully, but these errors were encountered: