Skip to content

Commit 44ea083

Browse files
feat: Intl.getCanonicalLocales & supportedValuesOf
1 parent 551836f commit 44ea083

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Core__Intl.res

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,18 @@ module Locale = Core__Intl__Locale
44
module NumberFormat = Core__Intl__NumberFormat
55
module PluralRules = Core__Intl__PluralRules
66
module RelativeTimeFormat = Core__Intl__RelativeTimeFormat
7+
8+
/**
9+
@throws RangeError
10+
*/
11+
external getCanonicalLocalesExn: string => array<string> = "Intl.getCanonicalLocales"
12+
13+
/**
14+
@throws RangeError
15+
*/
16+
external getCanonicalLocalesManyExn: array<string> => array<string> = "Intl.getCanonicalLocales"
17+
18+
/**
19+
@throws RangeError
20+
*/
21+
external supportedValuesOfExn: string => array<string> = "Intl.supportedValuesOf"

0 commit comments

Comments
 (0)