@mocanvas/mocanvas · function

useAvailableTranslationLocales

declare function useAvailableTranslationLocales(): readonly TLLanguage[]

The languages this editor can actually be shown in.

mocanvas ships no message catalogues — its default labels are English display text — so this is the set the *host* supplied through overrides.translations, named where LANGUAGES knows the name. With no dictionaries it is empty, and a language menu built from it correctly offers nothing rather than twenty-five languages that all render the same English.

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.