[wp-trac] [WordPress Trac] #51142: Invalid Moment.js locale from get_user_locale()

WordPress Trac noreply at wordpress.org
Tue Aug 25 22:47:47 UTC 2020


#51142: Invalid Moment.js locale from get_user_locale()
--------------------------------+------------------------------
 Reporter:  slightlyfaulty      |       Owner:  (none)
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  External Libraries  |     Version:  5.5
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  javascript
--------------------------------+------------------------------

Comment (by slightlyfaulty):

 It might be worth mentioning that this doesn't just affect usage of
 Moment.js itself, but also the `@wordpress/date` package.

 For example, `format( 'jS' )` returns `25` instead of the expected `25th`.

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


More information about the wp-trac mailing list