Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Inernationalization
type lang_data = {
days : string array;
months : string array;
string_of_date : Types.date -> string;
string_of_datetime : Types.date -> string;
}
Such a structure must be defined for each language to support.
val french : lang_data
val english : lang_data
val register_lang : lang_abbrev -> lang_data -> unit
val set_default_lang : lang_abbrev -> unit
Use the given language abbreviation (such as "fr") to set the default language. The language must have been registered previously (except for predefined "en" and "fr" languages) or else the Failure
exception if raised.
val data_of_lang : lang_abbrev option -> lang_data
val get_month : lang_abbrev option -> int -> string
val string_of_date : lang_abbrev option -> Types.date -> string
val string_of_date_opt : lang_abbrev option -> Types.date option -> string
val string_of_datetime : lang_abbrev option -> Types.date -> string
val string_of_datetime_opt : lang_abbrev option -> Types.date option -> string
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>