[wp-trac] [WordPress Trac] #47373: Extend Moment.js localization
WordPress Trac
noreply at wordpress.org
Fri May 24 13:52:02 UTC 2019
#47373: Extend Moment.js localization
-------------------------+----------------------------------------
Reporter: swissspidy | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version:
Severity: normal | Keywords: needs-patch good-first-bug
Focuses: |
-------------------------+----------------------------------------
With the Gutenberg integration we also got Moment.js in core with some
localization support.
However, only a few of the fields that Moment.js supports are localized in
WordPress. If a plugin wants to use some features like relative time (e.g.
"%s hours ago"), these bits won't be translated.
I suggest also localizing thinks like `relativeTime` and potentially
others.
See https://momentjs.com/docs/#/i18n/ for a full list of things that could
be localized in core.
Similar enhancement in the past for jQuery UI datepicker: #29420
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47373>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list