package ezjs_extension
Binding for Chrome and Firefox extension API
Install
Dune Dependency
Authors
Maintainers
Sources
0.2.tar.gz
md5=656df77dabbefd03a5646cf72953b29c
sha512=f1e0f92683eb1605bb32ba2791ef046fd2312357f19fcc44ae06544708b789f2398666cf0adb1848e89c8f0a6f17615ac8437477cd7761f9cff5cff9969bb54d
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.global##.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)"
>