Explorer

html-ui.descriptions-json

description
The descriptions as a JSON object from the language code to the text (read back with definy.mcp-read-descriptions)
type
Fn(texts: List<@core.localized-text>) -> @definy.json
expression
fn(texts$0) =>
  #object<@definy.json>(@core.list-map(
    T: @core.localized-text,
    U: Record{key: String, value: @definy.json},
    f: fn(item$1) =>
      {key: $1.language, value: #string<@definy.json>($1.text)},
    xs: $0
  ))
visibility
public
html-ui.descriptions-json (project html-ui, branch main, snapshot Daaw3vbJhY15cDW6JsA4JuXvffjj_qFyxoZQMUM8hvQ)
id: vc1UwywkG6grLjMavHrGOBCQ-teCYq1XPlkmgDolIuc
content hash: lGHNb5ljR_6wvD6V6uaSYEKdqLywQ8c_TkogoqthMls