add thousands separator

This commit is contained in:
MaysWind
2020-11-10 00:46:58 +08:00
parent 66c71344da
commit a204b647be
5 changed files with 40 additions and 3 deletions
+3
View File
@@ -5,6 +5,7 @@ const serverSettingsCookieKey = 'ACP_SETTINGS';
const defaultSettings = {
lang: 'en',
thousandsSeparator: true,
currencyDisplayMode: 'code', // or 'none' or 'name'
animate: true,
autoDarkMode: true
@@ -66,6 +67,8 @@ function getServerSetting(key) {
export default {
getLanguage: () => getOriginalOption('lang'),
setLanguage: value => setOption('lang', value),
isEnableThousandsSeparator: () => getOption('thousandsSeparator'),
setEnableThousandsSeparator: value => setOption('thousandsSeparator', value),
getCurrencyDisplayMode: () => getOption('currencyDisplayMode'),
setCurrencyDisplayMode: value => setOption('currencyDisplayMode', value),
isEnableAnimate: () => getOption('animate'),