[wp-meta] [Making WordPress.org] #6270: Translated text specified in JavaScript is not translated
Making WordPress.org
noreply at wordpress.org
Tue Apr 12 07:11:01 UTC 2022
#6270: Translated text specified in JavaScript is not translated
--------------------------------------+---------------------
Reporter: shimotomoki | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone:
Component: Translate Site & Plugins | Resolution:
Keywords: |
--------------------------------------+---------------------
Comment (by kittmedia):
According to the Block Editor Handbook (https://developer.wordpress.org
/block-editor/how-to-guides/internationalization/) you need to use
`wp_set_script_translations()`
(https://developer.wordpress.org/reference/functions/wp_set_script_translations/)
so that the translations are loaded.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/6270#comment:1>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list