# parse

function in `@dioramajs/text/counter`

```ts
import { parse } from '@dioramajs/text/counter'
```

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`. 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.

```ts
function parse(text: string, lang?: string): Written | undefined
```

| Parameter | Type | Description |
| --- | --- | --- |
| `text` | `string` |  |
| `lang?` | `string` |  |

Defined in [packages/text/src/counter.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/text/src/counter.ts#L106).
