This commit is contained in:
2020-02-06 20:03:08 +00:00
parent 7af6c99638
commit 8763aea576
3 changed files with 21 additions and 21 deletions

View File

@@ -204,13 +204,19 @@ export default {
// only how the user expects to see the page itself
//
// also for sake of future proofing and edge cases need to have it be manually settable as well
// ############### TODO: modify both of these to put the user's manual override first in line (if there is one)
// ############### TODO: modify all of these to put the user's manual override first in line (if there is one)
getBrowserLanguages() {
return window.navigator.languages;
},
getBrowserFirstLanguage() {
return window.navigator.languages[0];
},
///////////////////////////////////////////
// Get users default time zone
//
getTimeZoneName() {
return Intl.DateTimeFormat().resolvedOptions().timeZone;
},
////////////////////////////////////////////////////////
// dynamically set the vuetify language elements from
// users localized text (am/pm etc)