@mocanvas/mocanvas · function

getDefaultTranslationLocale

declare function getDefaultTranslationLocale(locales?: readonly string[]): string

The best match for a browser locale among LANGUAGES, falling back to English. Takes the navigator's list so a browser configured with ["cs-CZ", "en"] gets Czech rather than the first exact match.

Mentioned here

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.