File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import { localeInfo } from '../cldr' ;
22
33const MONTH = 'month' ;
4- const DAY = 'day' ;
54const HOUR = 'hour' ;
65const ZONE = 'zone' ;
76const WEEKDAY = 'weekday' ;
@@ -11,8 +10,8 @@ const dateFieldMap = {
1110 'y' : 'year' ,
1211 'M' : MONTH ,
1312 'L' : MONTH ,
14- 'd' : DAY ,
15- 'E' : DAY ,
13+ 'd' : 'day' ,
14+ 'E' : 'weekday' ,
1615 'h' : HOUR ,
1716 'H' : HOUR ,
1817 'm' : 'minute' ,
Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ describe('dateFieldName', () => {
4242 } ) ;
4343
4444 it ( 'should return placeholder for wide day name' , ( ) => {
45- expect ( dateFieldName ( "EEEE" , "bg" ) ) . toEqual ( "ден" ) ;
45+ expect ( dateFieldName ( "EEEE" ) ) . toEqual ( "day of the week" ) ;
46+ expect ( dateFieldName ( "EEEE" , "bg" ) ) . toEqual ( "ден от седмицата" ) ;
4647 } ) ;
4748
4849 it ( 'should return placeholder for short day name' , ( ) => {
You can’t perform that action at this time.
0 commit comments