Skip to main content

l10n.get

Overview

  • Resolves StringTable text IDs to localized strings. Pass 'key' for single or 'keys' (JSON array) for batch.

Metadata

FieldValue
DisplayLocalize Text IDs
Categoryl10n
AccessPublic
ScopeB1Standalone
Tags—
Aliases—

Parameters

NameTypeRequiredDefaultDescription
keystringno—Single text ID to resolve
keysstringno—JSON array of text IDs, e.g. ["id1","id2"]

Returns

  • Freeform result (shape is not fixed).

Object whose keys are the requested text IDs and values are the localized strings (dynamic keys).

Usage

await inzoi.cli.execute('l10n.get', {
key: '', // optional
keys: '', // optional
});