[wp-trac] [WordPress Trac] #50535: Use wp.i18n for translatable strings in wp-admin/js/privacy-tools.js
WordPress Trac
noreply at wordpress.org
Thu Jul 2 11:09:38 UTC 2020
#50535: Use wp.i18n for translatable strings in wp-admin/js/privacy-tools.js
----------------------------+-----------------------------
Reporter: SergeyBiryukov | Owner: SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.5
Component: I18N | Version:
Severity: normal | Resolution: fixed
Keywords: | Focuses: javascript
----------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"48274" 48274]:
{{{
#!CommitTicketReference repository="" revision="48274"
I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/privacy-
tools.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, afercia.
See #20491.
Fixes #50535.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50535#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list