This commit is contained in:
@@ -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");
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user