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:

Parameter Type Description
phrase string The phrase to translate.
insert? unknown[] Values to insert into the phrase.

Returns: stringThe translated phrase.