diff --git a/models/doctype/SystemSettings/SystemSettings.js b/models/doctype/SystemSettings/SystemSettings.js index c2b29e79..d2ea81bb 100644 --- a/models/doctype/SystemSettings/SystemSettings.js +++ b/models/doctype/SystemSettings/SystemSettings.js @@ -3,6 +3,7 @@ const { _ } = require('frappejs/utils'); const { DEFAULT_DISPLAY_PRECISION, DEFAULT_INTERNAL_PRECISION, + DEFAULT_LOCALE, } = require('../../../utils/consts'); let dateFormatOptions = (() => { @@ -43,6 +44,13 @@ module.exports = { required: 1, description: _('Sets the app-wide date display format.'), }, + { + fieldname: 'locale', + label: 'Locale', + fieldtype: 'Data', + default: DEFAULT_LOCALE, + description: _('Set the local code, this is used for number formatting.'), + }, { fieldname: 'displayPrecision', label: 'Display Precision', @@ -92,6 +100,7 @@ module.exports = { ], quickEditFields: [ 'dateFormat', + 'locale', 'displayPrecision', 'hideGetStarted', 'autoUpdate', diff --git a/utils/consts.js b/utils/consts.js index 2fc503b5..df3432cf 100644 --- a/utils/consts.js +++ b/utils/consts.js @@ -1,2 +1,3 @@ export const DEFAULT_INTERNAL_PRECISION = 11; export const DEFAULT_DISPLAY_PRECISION = 2; +export const DEFAULT_LOCALE = 'en-IN';