SAP / openui5

OpenUI5 lets you build enterprise-ready web applications, responsive to all devices, running on almost any browser of your choice.
http://openui5.org
Apache License 2.0
2.95k stars 1.24k forks source link

Incorrect formatting/parsing number separators in es-SV locale #2723

Open cmastrandrea opened 4 years ago

cmastrandrea commented 4 years ago

OpenUI5 version: latest

Browser/version (+device/version): N/A

Any other tested browsers/devices(OK/FAIL):

URL (minimal example if possible): N/A

User/password (if required and possible - do not post any confidential information here):

Steps to reproduce the problem: OpenUI5 currently doesn’t include locale data for es-SV (El Salvador), so as a fallback, the formatting and parsing patterns use es (Spanish).

However, according to the CLDR for es-SV, the separators are reversed from the CLDR for es (dot should be used for decimal separator, and comma should be used for the group separator). So the fallback for Spanish locales in South America should use locale data from es-419 (Latin America Spanish) which has the same separators as es-SV according to its CLDR.

What is the expected result? Expected that formatting/parsing in es-SV uses correct separators

What happens instead? Incorrect separators are used

Any other information? (attach screenshot if possible)

alexandar-mitsev commented 4 years ago

Hello @cmastrandrea,

We will evaluate the request for adding es-SV. With this internal message #1970592824.

In the meantime you can try to use a custom number formatter if that is suitable in your use case.

Best Regards, Alexandar Mitsev

uhlmannm commented 1 year ago

This will be tracked internally as CPOUI5MODELS-1370.