Skip to content

Commit 532af3a

Browse files
fix: typos in the bindings for Intl (#180)
* fix: typos in the bindings for Intl * chore: update CHANGELOG
1 parent 6143197 commit 532af3a

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
## Next version
44

55
- Add `Dict.getUnsafe` https://github.com/rescript-association/rescript-core/pull/167
6+
- Fixes mis-bound `Intl` functions https://github.com/rescript-association/rescript-core/pull/180
7+
- `Intl.DateTimeFormat.formatRangeToParts` was bound to `formatRange` instead of `formatRangeToParts`
8+
- `Intl.PluralRules.select`, `Intl.PluralRules.selectInt`, and `Intl.PluralRules.selectBigInt` were bound to `format` instead of `select`
69

710
### Documentation
811

src/intl/Core__Intl__DateTimeFormat.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ external formatRangeToParts: (
3232
"type": string,
3333
"value": string,
3434
"source": string,
35-
}> = "formatRange"
35+
}> = "formatRangeToParts"

src/intl/Core__Intl__PluralRules.res

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ external supportedLocalesOfWithOptions: (array<string>, {..}) => t =
1616

1717
type rule = [#zero | #one | #two | #few | #many | #other]
1818

19-
@send external select: (t, float) => rule = "format"
20-
@send external selectInt: (t, int) => rule = "format"
21-
@send external selectBigInt: (t, Core__BigInt.t) => rule = "format"
19+
@send external select: (t, float) => rule = "select"
20+
@send external selectInt: (t, int) => rule = "select"
21+
@send external selectBigInt: (t, Core__BigInt.t) => rule = "select"

0 commit comments

Comments
 (0)