We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f97b9a2 commit 370ee1aCopy full SHA for 370ee1a
lib/js_of_ocaml/intl.mli
@@ -349,6 +349,13 @@ then (
349
with Error err -> Console.console##debug (string (string_of_error err)))
350
else Console.console##debug (string "Intl is not supported!")
351
]}
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
359
@see <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl> for API documentation.
360
@see <https://www.ecma-international.org/ecma-402/1.0/> for the ECMAScript specification. *)
361
0 commit comments