Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntlNumberConverter does not respect "signDisplay" property #70

Open
psommer-hri opened this issue Oct 27, 2020 · 1 comment
Open

IntlNumberConverter does not respect "signDisplay" property #70

psommer-hri opened this issue Oct 27, 2020 · 1 comment

Comments

@psommer-hri
Copy link

Hello Oracle JET Team,

I have the following issue with Jet Version 9.2.0:

Current Behaviour:
The oj.IntlNumberConverter does not respect the "signDisplay" property when it is specified in its' options. E.g. when "signDisplay" is set to "always", the sign is not always displayed.

Expected Behaviour:
According to ECMA-402, same formating as with Intl.NumberFormat.

Setps to Reproduce:

  1. Open the Converter Demo in the Cookbook.
  2. Add signDisplay: 'always' to the options and apply changes. Note, that no sign (i.e. "+") is displayed.
  3. Change this.converter from new NumberConverter.IntlNumberConverter(options) to new Intl.NumberFormat('en', options) and apply changes. Note, that the sign is now displayed.

Kind Regards,
Philip

@peppertech
Copy link
Member

peppertech commented Oct 28, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants