parse function
The first number in `text`, read as written: `12,480`, `99.9`, `4,2` or `1.204.500` in German, `1 204 500`, `12,34,567`.
import { parse } from '@dioramajs/text/counter'. A lone point or comma before exactly three digits groups them unless it is the decimal separator of lang. Undefined without digits or past 15 of them.
function parse(text: string, lang?: string): Written | undefinedParameters
| Name | Type | Description |
|---|---|---|
text | string | |
lang? | string |
Defined in packages/text/src/counter.ts.