CRUDUI

Home > @polyspec/crudui-generator-core > Translate

Translate type

Resolve content for the selected language: the text of the language, else English, Korean or the first entry, else fallback. It takes any value of decoded JSON: a value that is no LocalizedText resolves to fallback.

Signature:

export type Translate = (text: unknown, fallback?: string) => string;