This commit is contained in:
2020-02-05 23:06:27 +00:00
parent 93246e4251
commit fa56b99f6f
5 changed files with 41 additions and 6 deletions

View File

@@ -154,7 +154,9 @@ export default {
"ObjectCustomFieldCustomGrid",
"RowsPerPage",
"PageOfPageText",
"Loading"
"Loading",
"AM",
"PM"
],
decimalValidate(required) {
return { required: required, decimal: [2, this.format().decimalSeparator] };
@@ -240,5 +242,15 @@ export default {
}
return shortLanguage;
},
////////////////////////////////////////////////////////
// dynamically set the vuetify language elements from
// users localized text (am/pm etc)
// Keeping vuetify using en locale and just adjusting on top of that
//
setVuetifyDefaultLanguageElements(vm) {
vm.$vuetify.lang.locales.en.close = this.get("OK");
vm.$vuetify.lang.locales.en.timePicker.am = this.get("AM");
vm.$vuetify.lang.locales.en.timePicker.pm = this.get("PM");
}
};