[wp-trac] [WordPress Trac] #50235: wp-admin/js/updates.js: Use wp.i18n for JavaScript translations

WordPress Trac noreply at wordpress.org
Mon Jun 1 21:49:48 UTC 2020


#50235: wp-admin/js/updates.js: Use wp.i18n for JavaScript translations
-------------------------+-------------------------
 Reporter:  ocean90      |       Owner:  ocean90
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  5.5
Component:  I18N         |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:  javascript
-------------------------+-------------------------

Comment (by ocean90):

 Replying to [comment:3 aduth]:
 > Am I correct in thinking that the script registration should have been
 updated to include `wp-i18n` as a dependency of the `updates` script
 handle?

 `WP_Scripts::set_translations()` handles that for us.

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


More information about the wp-trac mailing list