[wp-trac] [WordPress Trac] #20491: Introduce some JavaScript i18n functions

WordPress Trac noreply at wordpress.org
Mon Jul 6 19:45:19 UTC 2020


#20491: Introduce some JavaScript i18n functions
--------------------------------------+-----------------------------------
 Reporter:  johnbillion               |       Owner:  swissspidy
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  5.0
Component:  I18N                      |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  javascript, rest-api
--------------------------------------+-----------------------------------

Comment (by ocean90):

 In [changeset:"48347" 48347]:
 {{{
 #!CommitTicketReference repository="" revision="48347"
 I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/tags.js`.

 This removes the usage of `wp_localize_script()` for passing translations
 to the script and instead adds the translatable strings in the script
 directly through the use of `wp.i18n` and its utilities.

 Props swissspidy, ocean90.
 See #20491.
 Fixes #50577.
 }}}

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


More information about the wp-trac mailing list