Skip to content

Commit 370ee1a

Browse files
toastalhhugo
authored andcommitted
attempt comment test?
Not entirely sure what these are or how they work
1 parent f97b9a2 commit 370ee1a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/js_of_ocaml/intl.mli

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,13 @@ then (
349349
with Error err -> Console.console##debug (string (string_of_error err)))
350350
else Console.console##debug (string "Intl is not supported!")
351351
]}
352+
353+
let options = Intl.RelativeTimeFormat.options () in
354+
let () = options##.numeric := "auto" in
355+
let () = options##.style := "short" in
356+
let th_rtf = new%js Intl.relativeTimeFormat_constr (def (jas [| "th-TH" |])) options in
357+
fc (th_rtf.format -1 "day");
358+
352359
@see <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl> for API documentation.
353360
@see <https://www.ecma-international.org/ecma-402/1.0/> for the ECMAScript specification. *)
354361

0 commit comments

Comments
 (0)