question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Formatting does not work for Swiss Franc(locale used is fr-CH)

See original GitHub issue

<currency-input currency="CHF" locale="fr-CH" />

When using the above configuration:

  1. It does not allow input of decimal digits.
  2. By default adds two zeroes at the end of input. (Eg: 2453(input) --> 245 300 CHF(output))
  3. Works correctly when precision is 0.

By digging online, I found that the decimal separator for fr-CH currency is . while the one used here is ,. Can you help me with this?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dm4t2commented, Jun 20, 2020

Fixed in Release 1.19.1 🎉

1reaction
dm4t2commented, Jun 15, 2020

I will look into this. In the meantime, you can use locale="fr" as a workaround.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Formatting currencies to display in Switzerland for fr-CH locale
Based on this https://www.localeplanet.com/icu/fr-CH/index.html ... The decimal separator and the monitory decimal separators are different.
Read more >
Locale-based forms - Internationalization
Most of the remainder of this wiki will focus on issues and requirements ... to use the French, Swiss or Canadian formats for...
Read more >
Inconsistent currency symbol for Swiss Franc in Server 2012 ...
I'm working on international currency formatting, and came across a peculiar oddity in the currency symbols for the Swiss Franc.
Read more >
ICU Locale “Swiss French” (fr_CH) - LocalePlanet
ICU Locale “Swiss French” (fr_CH). General Information ... Java Locale, fr-CH ... International currency symbol, CHF. Minus sign, -.
Read more >
Formatting numbers (support for Swiss German locale)
Hello I have a problem with formatting my numbers in Swiss German (thousands are grouped with " ' " instead of " ,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found