In my SAPUI5 app, I need to display numerical data based on the user's settings in the SU01 backend transaction in SAP Logon.
For instance, users can specify decimal separators as:
22,000.000
(twenty two thousand) → US format22.000,000
(twenty two thousand) → German format
The UI5 app should be able to detect which decimal format is being used according to these settings and format the data accordingly.
I am currently referencing the "Number Format" topic found at this link, but the challenge lies in manually providing the region information. Ideally, I would like to retrieve this from the user's configured settings.
var oLocale = new sap.ui.core.Locale("en-US");
var oFormatOptions = {
showMeasure: true
};