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

WordPress Trac noreply at wordpress.org
Mon Mar 21 00:36:33 UTC 2022


#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.0
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  javascript
--------------------------------+------------------------------

Comment (by noisysocks):

 > `moment.defineLocale( 'en_US', { parentLocale: 'en' } )` should be
 called before `moment.updateLocale( 'en_US', {...} )`

 This makes sense to me!

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


More information about the wp-trac mailing list