Skip to content

Commit

Permalink
Split changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeckem committed Nov 19, 2024
1 parent 1ef179f commit b6af5ba
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .changeset/friendly-insects-breathe.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
"@open-pioneer/runtime": minor
"@open-pioneer/core": minor
---

Introduce NumberParserService for parsing strings to numbers according to the current locale.
Introduce `NumberParserService` for parsing strings to numbers in the application's current locale.
12 changes: 12 additions & 0 deletions .changeset/tricky-dingos-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"@open-pioneer/core": minor
---

Introduce the `NumberParser` class for parsing strings in a specified locale.

```js
import { NumberParser } from "@open-pioneer/core";

const parser = new NumberParser("de-DE");
const number = parser.parse("1.234,56");
```

0 comments on commit b6af5ba

Please sign in to comment.