TLLanguage
A language definition object representing a supported localization in tldraw.
Derived from the LANGUAGES array, this type represents a single language entry containing a locale identifier and human-readable label. The locale follows BCP 47 standards (e.g., 'en', 'fr', 'zh-CN') and the label is in the native language.
type TLLanguage = (typeof LANGUAGES)[number];Example
import { TLLanguage } from "@tldraw/tlschema";
// Using TLLanguage type
const currentLanguage: TLLanguage = { locale: "fr", label: "Français" };
// Access locale and label
console.log(currentLanguage.locale); // "fr"
console.log(currentLanguage.label); // "Français"Prev
TLInstancePresenceIDNext
TLLineShape