This commit is contained in:
2020-02-07 18:43:12 +00:00
parent 1a624323b1
commit f326412df7
4 changed files with 95 additions and 5 deletions

View File

@@ -218,6 +218,12 @@ export default {
getTimeZoneName() {
return Intl.DateTimeFormat().resolvedOptions().timeZone;
},
//////////////////////////////////////////////////
// Get the user's chosen currency name
//
getCurrencyName() {
return window.$gz.store.state.locale.currencyName;
},
///////////////////////////////////////////
// Turn a utc date into a displayable
// short date and time
@@ -386,7 +392,7 @@ export default {
languageName = this.getBrowserLanguages();
}
if (!currencyName) {
currencyName = window.$gz.store.state.locale.currencyName;
currencyName = this.getCurrencyName();
}
return new Intl.NumberFormat(languageName, {