{ "version": 3, "sources": ["../../../../../src/lib/ui/hooks/useTranslation/useLanguages.tsx"], "sourcesContent": ["import { LANGUAGES, TLLanguage, useEditor } from '@tldraw/editor'\n\n/** @internal */\nexport function useLanguages() {\n\tconst editor = useEditor()\n\treturn {\n\t\tlanguages: LANGUAGES as readonly TLLanguage[],\n\t\tcurrentLanguage: editor.user.locale,\n\t}\n}\n"], "mappings": "AAAA,SAAS,WAAuB,iBAAiB;AAG1C,SAAS,eAAe;AAC9B,QAAM,SAAS,UAAU;AACzB,SAAO;AAAA,IACN,WAAW;AAAA,IACX,iBAAiB,OAAO,KAAK;AAAA,EAC9B;AACD;", "names": [] }