Skip to content

App.setSpellcheckLanguages method

App › setSpellcheckLanguages

Unofficial

Set the spellcheck languages.

Signature:

setSpellcheckLanguages(languages: string[] | null): void

Parameters:

ParameterTypeDescription
languagesstring[] | nullThe spellcheck languages to set. Pass null or an empty array to clear the setting, which makes Obsidian fall back to the OS locale.

Returns: void

Remarks:

Obsidian's own spellcheck setting passes null here for its restore-default button.