@mocanvas/editor · function

getLocaleChain

declare function getLocaleChain(locale: string): string[]

The locales to try, most specific first: the locale itself, its base language, then English.

SEMANTICS-ASSUMED: the base-language step is not pinned by any call site (the consumer registers a single en map). It is included because the alternative — cs-CZ silently missing every string a cs dictionary has — is the failure an app would have to work around by hand.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.