updateHoraGlobalLocale function
void
updateHoraGlobalLocale({})
Updates the global locale settings.
Any properties not specified will keep the current global locale's values.
Implementation
void updateHoraGlobalLocale({
String? code,
List<String>? months,
List<String>? monthsShort,
List<String>? weekdays,
List<String>? weekdaysShort,
List<String>? weekdaysMin,
int? weekStart,
int? yearStart,
String? invalidDate,
HoraFormats? formats,
HoraRelativeTime? relativeTime,
}) {
_validateLocaleOverrides(
code: code,
months: months,
monthsShort: monthsShort,
weekdays: weekdays,
weekdaysShort: weekdaysShort,
weekdaysMin: weekdaysMin,
weekStart: weekStart,
yearStart: yearStart,
);
Hora.globalLocale = Hora.globalLocale.update(
code: code,
months: months,
monthsShort: monthsShort,
weekdays: weekdays,
weekdaysShort: weekdaysShort,
weekdaysMin: weekdaysMin,
weekStart: weekStart,
yearStart: yearStart,
invalidDate: invalidDate,
formats: formats,
relativeTime: relativeTime,
);
}