This commit is contained in:
2020-02-07 00:51:36 +00:00
parent 99d37a2d5b
commit ff35bda367
4 changed files with 46 additions and 23 deletions

View File

@@ -23,7 +23,7 @@ export default new Vuex.Store({
locale: {
tag: "en-US",
decimalSeparator: ".",
currencySymbol: "$",
currencyName: "USD",
hour12: true,
// shortDate: "YYYY-MM-DD",
// shortTime: "hh:mm:ss A",
@@ -60,7 +60,7 @@ export default new Vuex.Store({
state.apiUrl = "";
state.locale.tag = "en-US";
state.locale.decimalSeparator = ".";
state.locale.currencySymbol = "$";
state.locale.currencyName = "USD";
state.locale.hour12 = true;
// state.locale.shortDate = "YYYY-MM-DD";
// state.locale.shortTime = "hh:mm:ss A";
@@ -81,7 +81,7 @@ export default new Vuex.Store({
setLocale(state, data) {
// mutate state
state.locale.decimalSeparator = data.decimalSeparator;
state.locale.currencySymbol = data.currencySymbol;
state.locale.currencyName = data.currencyName;
state.locale.hour12 = data.hour12;
// state.locale.shortDate = data.shortDate;
// state.locale.shortTime = data.shortTime;