nextcloud / nextcloud/cookbook

Use local settings for non integer amounts (decimal point vs. decimal comma)

Open
#1,987 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Frontend
Dominant language
HTML
Stars
641
Forks
113
Avg merge
21h 31m
Merged PRs (30d)
26

Description

Description
Use local settings for non integer amounts

Reproduction

  1. choose German settings
  2. choose an ingredient whose quantity is not an integer (e.g. 0.5)
  3. see a decimal point instead of a decimal comma

Expected behavior
decimal comma instead of a decimal point

Screenshots
nc_cb_03

Versions
Nextcloud server version: 26.0.8
Cookbook version: 0.10.5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with German settings and a recipe ingredient quantity such as 0.5, then trace where the quantity is rendered and how the locale is selected. Done means non-integer amounts use a decimal comma under German settings while other locale formatting remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend, localization
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.