# heading/utils

module

<a id="functions">

## Functions

<a id="function-getLocalizedOptions">

### `getLocalizedOptions( editor ) → Array<HeadingOption>` _(internal)_

Returns heading options as defined in `config.heading.options` but processed to consider the editor localization, i.e. to display [`HeadingOption`](module_heading_headingconfig-HeadingOption.md) in the correct language.

Note: The reason behind this method is that there is no way to use [`t`](module_utils_locale-Locale.md#member-t) when the user configuration is defined because the editor does not exist yet.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-heading/src/utils.ts#L24)

#### Parameters

* `editor: Editor`

#### Returns

* `Array<HeadingOption>`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
