Crate usdpl_front

source ·
Expand description

Front-end library to be called from Javascript. Targets WASM.

In true Javascript tradition, this part of the library does not support error handling.

Functions

  • Call a function on the back-end. Returns null (None) if this fails for any reason.
  • Get the targeted plugin framework, or “any” if unknown
  • Initialize translation strings for the front-end
  • Initialize the front-end library
  • Get the targeted plugin framework, or “any” if unknown
  • Get the targeted plugin framework, or “any” if unknown
  • Translate a phrase, equivalent to tr_n(msg_id, 0)
  • Translate a phrase, retrieving the plural form for n items
  • Get the UDSPL front-end version