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.
Parameters
Section titled “Parameters”language
Section titled “language”The language to load.
Returns
Section titled “Returns”Promise<Hyphenator>
The cached hyphenator.