Formatting Module for Forms Runtime
npm install @aemforms/af-formattersThe module contains the apis to format the values in form fields as per CLDR spec
* http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
* https://www.unicode.org/reports/tr35/tr35-numbers.html#Number_Patterns
Save it as a dependency
```
npm i --save @aemforms/af-formatters
import {format} from '@aemforms/af-formatters'
const value = 1234
format(1234, 'en-US', 'num|currency') //outputs $1,234.00const value = 2022-10-10
format(1234, 'en-US', 'date|MMM dd, y') //outputs Oct 10, 2022
`Testing Local Changes
`bash
Build the package
npm run buildLink it for local testing
npm link
`In your project that uses this package:
`bash
npm link @aemforms/af-formatters
``Copyright 2022 Adobe
All Rights Reserved.
NOTICE: All information contained herein is, and remains
the property of Adobe and its suppliers, if any. The intellectual
and technical concepts contained herein are proprietary to Adobe
and its suppliers and are protected by all applicable intellectual
property laws, including trade secret and copyright laws.
Dissemination of this information or reproduction of this material
is strictly forbidden unless prior written permission is obtained
from Adobe.
Adobe permits you to use and modify this file solely in accordance with
the terms of the Adobe license agreement accompanying it.