Repository navigation
API Function tHtml
function tHtml(key, args?): string;Defined in: src/engine/localisation/t.ts:47
ADR 0429: the message of key as inline HTML, for {@html tHtml("hud.coins", { count })} in a Svelte component. A
message may carry the inline subset (You have <b>{count}</b> coins; translators keep the tags), which then draws as
styled runs. Each string argument is escaped, so text from a player (a name) shows as typed and can never add markup;
numbers and dates format as in t, and a LocalText argument is another message, kept as written, with its own
string arguments escaped the same way. Follows language changes as t does.
string
Readonly<Record<string, MessageArg>>
string
This wiki is generated from docs/wiki/ and the myco module's source on every push to master. Change pages there in a pull request: edits made here are not kept.
Basics
Gameplay
Rendering
Audio
- Playing sound
- Why is there no sound?
- Playlists
- Interactive music
- Sound generators
- Spatial audio
- Audio mixer
- Live mixing
- Loudness
- Audio profiler
- Audio takes
Reference