Available translations
Add localized strings to the UI, and if not yet configured set a default launcher and/or overlay in ModalRequest using those strings.
localized strings to present in the UI
Install both a launcher and overlay for the given language into the specific request
Language tag to create a UI for
ModalRequest to configure UI for
The request object given
Create a launcher function using the localized strings of the given tag. If no translation exists for the given tag, used the first one available. If none exist, presents an error message in the launcher.
Language tag of localized strings.
Launch function that can be assigned to ModalRequest.laucher
Create a modal overlay using the localized strings of the given tag. If no translation exists for the given tag, used the first one available. If none exist, returns nothing (undefined).
Language tag of localized strings.
Overlay function that can be assigned to ModalRequest.overlay
Generated using TypeDoc
JavaScript-injected user interface elements for Poppy I/O clients.
Using this is optional - you can supply your own user interface code, but for convenience this provides a basic implementation of a Launcher and Modal Overlay as a JavaScript module.
To use it you need to install localized user-facing strings using one of the "inject-*" modules, for instance:
import "poppyio/inject-en";
The "inject-*" modules only have side effects and don't export any members. Installation occurs by passing an object with the strings to the add() method.