[wp-trac] [WordPress Trac] #54797: Allow languages path in register_block_type

WordPress Trac noreply at wordpress.org
Thu Sep 11 10:11:57 UTC 2025


#54797: Allow languages path in register_block_type
----------------------------------------+-----------------------------
 Reporter:  Rahe                        |       Owner:  gziolo
     Type:  enhancement                 |      Status:  assigned
 Priority:  normal                      |   Milestone:  Future Release
Component:  I18N                        |     Version:  5.5
 Severity:  normal                      |  Resolution:
 Keywords:  needs-unit-tests has-patch  |     Focuses:
----------------------------------------+-----------------------------

Comment (by swissspidy):

 In [changeset:"60728" 60728]:
 {{{
 #!CommitTicketReference repository="" revision="60728"
 I18N: Use `Domain Path` for script translations if available.

 This is a follow-up to [59461] from 6.8, which leveraged `Domain Path` for
 just-in-time loading of MO/PHP translation files.

 Now, the same is done for script translations, which means plugins/themes
 shipping with their own translation no longer need to manually specify the
 translation path when calling `wp_set_script_translations()`.

 Props tusharbharti, swissspidy, shailu25, jsnajdr.
 See #62244, #54797.
 Fixes #63944.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54797#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list