#7088 closed defect (bug) (invalid)
Custom block translations are not hit by wp_set_script_translations.
Reported by: | shimotomoki | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Translate Site & Plugins | Keywords: | |
Cc: |
Description
The following plugins are hosted on WordPress.org.
Plugin Directory
https://wordpress.org/plugins/flip-box-block/
The plugin has been updated in Stable and 0.1.31 can be obtained from the Advanced tab.
https://wordpress.org/plugins/flip-box-block/advanced/
Source Code
https://github.com/shimotmk/flipbox-block
I am having trouble getting my JavaScript translated text to translate.
Translating WordPress contains the text translated by JavaScript.
(This is an example of Japanese)
https://translate.wordpress.org/projects/wp-plugins/flip-box-block/dev/ja/default/
However, when I install the plugin and set the language to Japanese, the translation is not done.
Is this a problem with the plugin code?
Or is there a problem with the WordPress.org translation (GlotPress) ?
Change History (3)
This ticket was mentioned in Slack in #glotpress by nekojonez. View the logs.
16 months ago
#3
@
16 months ago
@dd32
Thanks for your comment.
I bumped the version by saying that it wasn't translated in Stable, but it wasn't resolved.
I also posted on Developing with WordPress.
https://wordpress.org/support/topic/custom-block-translations-are-not-hit-by-wp_set_script_translations/#new-topic-0
https://plugins.trac.wordpress.org/browser/flip-box-block/trunk/readme.txt?marks=7 still specifies
0.1.21
as the latest version, so 0.1.31 isn't stable / being built.The last language pack built for the plugin was
0.1.6
, that contains theflip-box-block-ja-fe9085f3d98a08dce07b16c5b89041e9.json
JS translations.It looks like the textdomain you're passing to
wp.i18n.__()
might beflipbox-block
which isn not the slug on WordPress.org, which would be the textdomain used for the language pack. That's probably a problem, as WordPress doesn't know that textdomain is the WordPress.org language pack.I'm not seeing any issues on the WordPress.org side here, so this is likely an issue with the plugin. Meta trac isn't the appropriate place for developer support, one of these will likely help: