[wp-trac] [WordPress Trac] #39222: Add JavaScript date helpers
WordPress Trac
noreply at wordpress.org
Tue Mar 7 13:35:03 UTC 2017
#39222: Add JavaScript date helpers
---------------------------------------------------+-----------------------
Reporter: rmccue | Owner: rmccue
Type: feature request | Status: assigned
Priority: normal | Milestone: 4.8
Component: Date/Time | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests needs-docs | Focuses: rest-api
---------------------------------------------------+-----------------------
Comment (by swissspidy):
> could we instead concatenate the date_format and time_format values with
a space?
Nope. String concatenation is always bad for i18n. Also, these strings
already exists like that, see `WP_Locale::_strings_for_pot()`.
----
Looking at `wpDateSettings`, it seems like a `WP_Locale` JS counterpart
would be helpful. To get all these formats etc. of the current locale.
Perhaps we can handle that in #20491 or a new ticket afterwards.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39222#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list