[wp-trac] [WordPress Trac] #45103: Automatically load JavaScript translations when scripts are enqueued if these exist.
WordPress Trac
noreply at wordpress.org
Thu Oct 25 13:59:54 UTC 2018
#45103: Automatically load JavaScript translations when scripts are enqueued if
these exist.
-------------------------+-------------------------
Reporter: herregroen | Owner: herregroen
Type: enhancement | Status: closed
Priority: high | Milestone: 5.0
Component: I18N | Version: trunk
Severity: critical | Resolution: fixed
Keywords: needs-patch | Focuses: javascript
-------------------------+-------------------------
Changes (by herregroen):
* owner: (none) => herregroen
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"43825" 43825]:
{{{
#!CommitTicketReference repository="" revision="43825"
I18N: Add JavaScript translation support.
Adds the `wp_set_script_translations` function which registers
translations for a JavaScript file. This function takes a handle, domain
and optionally a path and ensures JavaScript translation files are loaded
if they exist.
Props atimmer, omarreiss, nerrad, swissspidy, ocean90.
Fixes #45103.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45103#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list