[wp-trac] [WordPress Trac] #59219: Output of JS version of human_time_diff in the editor is not translated

WordPress Trac noreply at wordpress.org
Wed Aug 30 22:09:34 UTC 2023


#59219: Output of JS version of human_time_diff in the editor is not translated
----------------------------------------------+-----------------------
 Reporter:  ramonopoly                        |       Owner:  audrasjb
     Type:  defect (bug)                      |      Status:  closed
 Priority:  normal                            |   Milestone:  6.4
Component:  Editor                            |     Version:  6.3
 Severity:  normal                            |  Resolution:  fixed
 Keywords:  has-patch gutenberg-merge commit  |     Focuses:
----------------------------------------------+-----------------------
Changes (by audrasjb):

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


Comment:

 In [changeset:"56496" 56496]:
 {{{
 #!CommitTicketReference repository="" revision="56496"
 Editor: Add relative time strings for the `wp-date` inline script output.

 This changeset updates `wp_default_packages_inline_scripts()` to add
 relative time strings to the `wp-date` inline script, so the JS version of
 `human_time_diff`
 can output translated strings.

 Props ramonopoly, oandregal, swissspidy, manzoorwanijk, adrianduffell,
 Presskopp.
 Fixes #59219, #47373.
 }}}

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


More information about the wp-trac mailing list