rednode API - v0.80.1
    Preparing search index...

    Variable tConst

    t: (key: string, params?: TextParams) => LocalText & { ready: Promise<void> } = ...

    The package's own text in the player's language, from locales/<language>.json. {name} placeholders take params; count picks a plural form (one, few, many, other, as the language has them); m and f forms follow V's gender.

    Until the files are read, a text shows from English or as its key; await t.ready first when the text is used once as a plain string. In ink, it is sent again by itself.

    import { ink, t } from "rednode";

    ink.mount("hud", { anchor: "top" }, ink.text(t("reward", { amount: 500 }), { style: "value" }));