openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Setter for sap.ui.core.LocaleData

Open njames opened this issue 8 years ago • 3 comments

sap.ui.core.LocaleData - https://ui5.sap.com/#/api/sap.ui.core.LocaleData/overview has a whole lot of getters but no setter.

Instead of accessing the mData object and updating the item in question would it be possible to add a setter to change a setting in the current locale settings?

So rather than doing oLocale.mData['settingname'] = setting, we could have oLocale.set('settingname', setting) ?

Thanks.

njames avatar Aug 10 '18 01:08 njames

Hi @njames, Thanks for sharing your finding. I have created an internal incident 1880532649. The status of the issue will be updated here in GitHub. Regards, Jay

jaybarbhaiya avatar Aug 15 '18 08:08 jaybarbhaiya

Hi @njames,

before we discuss this internally, it would be helpful to understand where the need comes from to modify the LocaleData. From our point of view, this is read-only data and must not be changed. The data is taken from the Common Locale Data Repository of the Unicode.org and our preferred way for fixes is to follow their official path and request (and discuss) changes.

codeworrior avatar Aug 15 '18 09:08 codeworrior

@njames I am closing the issue due to inactivity. If you decide to continue the discussion, feel free to reopen the issue or create a new issue with a reference to this one. Thanks for the understanding

stephania87 avatar Oct 05 '18 14:10 stephania87