Vizel API / core/src / getVizelSlashCommandLocale
Function: getVizelSlashCommandLocale()
ts
function getVizelSlashCommandLocale(editor): VizelLocale;Defined in: packages/core/src/extensions/slash-command.ts:64
Return the locale the slash-command extension resolved at creation time.
Framework suggestion renderers call this helper because the Tiptap suggestion callbacks carry only the editor, not the locale. The function falls back to vizelEnLocale when the extension is absent.
Parameters
| Parameter | Type |
|---|---|
editor | Editor |