Skip to content

getHyphenator

getHyphenator(language): Promise<Hyphenator>

Defined in: src/core/hyphenation/index.ts:48

Lazily build (and cache) a language’s Hyphenator. The patterns module is dynamically imported the first time a language is requested, so callers that never hyphenate pay no cold-start cost.

SupportedLanguage

The language to load.

Promise<Hyphenator>

The cached hyphenator.