datumhue.i18n.t
functiondatumhue.i18n.t(key: string, vars?: table) -> MessageBuild a reactive localized message for catalog key, interpolating vars (string or number values; a number also drives plural selection). Pass it as the text of a label, button, or link (or to label:update) and it re-renders on a locale change. A key missing in both the active catalog and the built-in default renders verbatim.
local saved = datumhue.i18n.t("saved", { name = "Ada", count = 3 })
datumhue.ui.root:label({ text = saved })
-- The label and get() follow the active catalog.
datumhue.i18n.locale = sv
print(saved:get()) --> Ada sparade 3 filer
-- A number also picks the plural form.
local one = datumhue.i18n.t("saved", { name = "Ada", count = 1 })
print(one:get()) --> Ada sparade en fil