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