From bede994825d7c9adf05b72b7a765d041aadc27b7 Mon Sep 17 00:00:00 2001 From: Rishi Mehta Date: Tue, 6 Aug 2024 16:19:20 +0530 Subject: [PATCH] update number input component readme --- .../form/numberinput/v1/numberinput/README.md | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/numberinput/v1/numberinput/README.md b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/numberinput/v1/numberinput/README.md index 63c7d6394e..155b3dfd46 100644 --- a/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/numberinput/v1/numberinput/README.md +++ b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/numberinput/v1/numberinput/README.md @@ -55,6 +55,42 @@ The `core.forms.components.numberinput.v1.runtime` client library also include a It also provides a `core.forms.components.numberinput.v1.editor` editor client library category that includes JavaScript handling for dialog interaction. It is already included by its edit dialog. +## Number Input Formatting + +The formatting for number inputs, including decimal and thousand separators, is determined by the selected language. For example, with the `es-CO` locale: + +- **Decimal separator:** `,` +- **Thousands separator:** `.` + +### Supported Currency Symbols + +Currency symbols are supported out-of-the-box (OOTB) for the following languages: + +- `da-DK` (Danish) +- `de-DE` (German) +- `en-US` (English - United States) +- `en-GB` (English - United Kingdom) +- `es-ES` (Spanish - Spain) +- `fi-FI` (Finnish) +- `fr-FR` (French) +- `it-IT` (Italian) +- `ja-JP` (Japanese) +- `nb-NO` (Norwegian Bokmål) +- `nl-NL` (Dutch) +- `pt-BR` (Portuguese - Brazil) +- `sv-SE` (Swedish) +- `zh-CN` (Chinese - Simplified) +- `zh-TW` (Chinese - Traditional) +- `ko-KR` (Korean) +- `cs-CZ` (Czech) +- `pl-PL` (Polish) +- `ru-RU` (Russian) +- `tr-TR` (Turkish) + +### Custom Currency Symbols + +For languages not listed above, such as `es-CO` (Spanish - Colombia), the currency symbol must be explicitly defined using the ISO 4217 currency code. The format is `¤/COP#,#00.0#`. + ## BEM Description ``` BLOCK cmp-adaptiveform-numberinput