Skip to content

EditorState.phrase method

EditorState › phrase

Official

Look up a translation for the given phrase.

Signature:

phrase(phrase: string, insert?: unknown[]): string

Parameters:

ParameterTypeDescription
phrasestringThe phrase to translate.
insert?unknown[]Values to insert into the phrase.

Returns: stringThe translated phrase.