[wp-trac] [WordPress Trac] #45103: Automatically load JavaScript translations when scripts are enqueued if these exist.

WordPress Trac noreply at wordpress.org
Fri Dec 14 05:51:35 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:  has-patch fixed-5.0 needs-dev-note  |     Focuses:  javascript
------------------------------------------------+-------------------------
Changes (by pento):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44169" 44169]:
 {{{
 #!CommitTicketReference repository="" revision="44169"
 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.

 Merges [43825,43828,43859,43898] from the 5.0 branch to trunk.

 Props herregroen, atimmer, omarreiss, nerrad, swissspidy, ocean90,
 georgestephanis.
 Fixes #45103, #45256.
 }}}

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


More information about the wp-trac mailing list