From b974ac1e19b38f218fabf7a2efe0279ee39fec79 Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Fri, 2 Jan 2026 03:22:24 +0200 Subject: [PATCH] guide: Drop mention of selection on 0.0 (#155, #268) --- guide/selectors.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/guide/selectors.md b/guide/selectors.md index 030aee6..28137d8 100644 --- a/guide/selectors.md +++ b/guide/selectors.md @@ -25,16 +25,15 @@ the [CLDR plural category][] for the number. The possible categories are: `zero`, `one`, `two`, `few`, `many`, and `other`. For instance, English has two plural categories: `one` and `other`. -If the translation requires a number to be formatted in a particular -non-default manner, the selector should use the same formatting options. The -formatted number will then be used to choose the correct CLDR plural category -which, for some languages, might be different than the category of the -unformatted number: +If the translation requires a variant for a specific value, +it will be matched according to its numerical value. +This applies even if the number will be formatted differently, e.g. with trailing zeros. +Selection on non-integral numbers should be avoided. ``` your-score = { NUMBER($score, minimumFractionDigits: 1) -> - [0.0] You scored zero points. What happened? + [0] You scored zero points. What happened? *[other] You scored { NUMBER($score, minimumFractionDigits: 1) } points. } ```