Skip to content

Commit 551836f

Browse files
feat: Intl.Locale
1 parent cb785a1 commit 551836f

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/intl/Core__Intl__Locale.res

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
type t
22

3+
type options = {
4+
baseName?: string,
5+
calendar?: string, // TODO: probably the same as Core__Intl__DateTimeFormat.calendar?
6+
collation?: string, // TODO: probably the same as Core__Intl__Collator.collation?
7+
hourCycle?: [#h11 | #h12 | #h23 | #h24],
8+
caseFirst?: [#upper | #lower | #"false"],
9+
numberingSystem?: Core__Intl__Common.numberingSystem,
10+
numeric?: bool,
11+
language?: string,
12+
script?: string,
13+
region?: string,
14+
}
15+
316
@new external make: string => t = "Intl.Locale"
4-
@new external makeWithOptions: (string, {..}) => t = "Intl.Locale"
17+
@new external makeWithOptions: (string, options) => t = "Intl.Locale"
518

619
@get external baseName: t => string = "baseName"
720
@get external calendar: t => option<string> = "calendar"

0 commit comments

Comments
 (0)