[wp-trac] [WordPress Trac] #62244: Just-in-time translation loading for plugins/themes not in the directory
WordPress Trac
noreply at wordpress.org
Thu Sep 11 10:11:57 UTC 2025
#62244: Just-in-time translation loading for plugins/themes not in the directory
------------------------------------+-------------------------
Reporter: swissspidy | Owner: swissspidy
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.8
Component: I18N | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-dev-note | 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/62244#comment:38>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list