@mocanvas/mocanvas · constant
declare const LanguageMenu: () => react.JSX.Element | nullPick the UI locale — when there is more than one to pick from.
mocanvas ships no message catalogues: its own labels are English display
text, and overrides.translations is where an app's dictionaries come
from. So the list is the host's locales, not the twenty-five entries of
LANGUAGES — offering a language for which no strings exist is a
promise the library cannot keep, and a user who picks one and sees nothing
change learns that the menu lies. With no dictionaries, or only one, this
renders nothing at all.
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.