package ezjs_extension
Binding for Chrome and Firefox extension API
Install
Dune Dependency
Authors
Maintainers
Sources
0.1.tar.gz
md5=0d1dc7175a620eb50c07f2bbe0531533
sha512=5742b4e64398533c95291fe7c9b5ed3e264214dee7522fec1a0074766afd40e633aa1ceea16cbc6923ab80d737a15c13b50b96d4ddf8fad8ec74c30816877c9a
doc/src/ezjs_extension.chrome-common/i18n_chrome_common.ml.html
Source file i18n_chrome_common.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
open Ezjs_min class type language_percent = object method language : js_string t prop method percentage : int prop end class type language_detection = object method isReliable : bool t prop method languages : language_percent t js_array t prop end class type i18n = object method getAcceptLanguages : (js_string t js_array t -> unit) callback -> unit meth method getMessage : js_string t -> js_string t js_array t optdef -> js_string t meth method getUILanguage : js_string t meth method detectLanguage : js_string t -> (language_detection t -> unit) callback -> unit meth end let i18n = Unsafe.variable "chrome.i18n" let getMessage ?substitutions message = to_string (i18n##getMessage (string message) (optdef (of_listf string) substitutions)) let getUILanguage () = i18n##getUILanguage
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>