[wp-trac] [WordPress Trac] #56669: Translation for the block editor not loaded from the theme
WordPress Trac
noreply at wordpress.org
Tue Sep 27 15:20:11 UTC 2022
#56669: Translation for the block editor not loaded from the theme
---------------------------+-----------------------------
Reporter: benoitchantre | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version:
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
My theme has translations for the block editor and tries to load them with
{{{
wp_set_script_translations( 'my-editor-script', 'my-text-domain',
get_stylesheet_directory() . '/languages' );
}}}
My MO files are named as {locale}.mo
My JSON files are generated using WP-CLI with wp i18n make-json languages
--no-purge
I can see with Query Monitor that WordPress tries to load {text-
domain}-{locale}-{hash}.json instead of {locale}-{hash}.json (without
text-domain)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56669>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list