getodk / getodk/web-forms

Decimal separator and thousands separator in numerical widgets in Polish

Open
#469 1 comment 0 reactions 0 assignees View on GitHub
Primevue
Dominant language
TypeScript
Stars
38
Forks
22
PR merge metrics
No merged PRs in 30d

Description

#### Problem description
In Polish ` , ` is used as the decimal separator and `. ` is used as the thousands separator. When I used WF on a mobile in which Polish was set as the language:
- in decimal widgets entering` . ` creates `,` in the field
- in integer widget with thousands separators a space is created instead of a thousands separator

I checked a few different languages in which `. ` is used as thousands separators and ` , ` as decimal separator but the issue doesn't occur there.
#### Screenshot

https://github.com/user-attachments/assets/f0b75154-9205-44f6-8b7f-b49b618d7611

#### Steps to reproduce
1. Create a public link of All widgets form.
2. Copy the link to a phone.
3. In the phone in settings set Polish (polski) in languages.
4. Open the link, in integer widget with thousands separators enter e.g. "55555555" and in the decimal widget enter some numbers and double-click `.`.

#### Web Forms version

vb0ae2c0

#### Browser version
Chrome

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Polish-language behavior on a phone using the All widgets form, following the listed steps for integer and decimal widgets. Done means decimal input preserves the Polish decimal separator and integer input uses the expected thousands separator without converting the characters incorrectly.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, internationalization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.