fix AM/PM text in datetime picker is not translated

This commit is contained in:
MaysWind
2023-08-19 22:37:26 +08:00
parent 3095613a76
commit 7257abefb4
6 changed files with 15 additions and 6 deletions
+2 -2
View File
@@ -1079,9 +1079,9 @@ function setLanguage(i18nGlobal, locale, force) {
weekdaysMin : getAllMinWeekdayNames(i18nGlobal.t),
meridiem: function (hours) {
if (hours > 11) {
return i18nGlobal.t('datetime.PM.upperCase');
return i18nGlobal.t('datetime.PM.content');
} else {
return i18nGlobal.t('datetime.AM.upperCase');
return i18nGlobal.t('datetime.AM.content');
}
}
});