N

i18n

namespace i18n

Functions

F

format(key: string, vars?: FormatVars): string

Formats a localized string, interpolating ICU MessageFormat placeholders.

Returns

The formatted string.

Types

An addon's messages, format and useMessages, over en-US and at most one other locale.

The values format puts into a message's ICU MessageFormat placeholders, by placeholder name.

Where an addon's translations live: the codes its manifest lists, and how to read one.

One locale's messages, keyed by message key.

Variables

V

messages: Record<string, string>

The core messages proxy, resolving Unbound's own UI strings against the active Discord locale.