@mocanvas/mocanvas · function

useCurrentTranslation

declare function useCurrentTranslation(): TLUiTranslation

The resolved dictionary. Throws outside a provider — a component that needs the locale as well as the strings has no sensible fallback for "no locale".

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.