mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
fix(datetime): fix property dayNames (it was using dayShort)
clean up API docs references #5010
This commit is contained in:
@ -42,7 +42,7 @@ export function renderTextFormat(format: string, value: any, date: DateTimeData,
|
||||
value = (new Date(date.year, date.month - 1, date.day)).getDay();
|
||||
|
||||
if (format === FORMAT_DDDD) {
|
||||
return (isPresent(locale.dayShort) ? locale.dayShort : DAY_NAMES)[value];
|
||||
return (isPresent(locale.dayNames) ? locale.dayNames : DAY_NAMES)[value];
|
||||
}
|
||||
|
||||
return (isPresent(locale.dayShortNames) ? locale.dayShortNames : DAY_SHORT_NAMES)[value];
|
||||
@ -402,7 +402,7 @@ export interface DateTimeData {
|
||||
export interface LocaleData {
|
||||
monthNames?: string[];
|
||||
monthShortNames?: string[];
|
||||
dayShort?: string[];
|
||||
dayNames?: string[];
|
||||
dayShortNames?: string[];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user