This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user