EditorState.phrase method
EditorState › phrase
Official
Look up a translation for the given phrase.Signature:
phrase(phrase: string, insert?: unknown[]): stringParameters:
| Parameter | Type | Description |
|---|---|---|
| phrase | string | The phrase to translate. |
| insert? | unknown[] | Values to insert into the phrase. |
Returns: string — The translated phrase.