matchLang() — supabase Function Reference
Architecture documentation for the matchLang() function in CodeSample.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD ae8fc91c_5fec_bf25_4932_abd9034ad167["matchLang()"] beb19324_0ee7_c826_cdeb_54c57d864501["rewriteNodes()"] beb19324_0ee7_c826_cdeb_54c57d864501 -->|calls| ae8fc91c_5fec_bf25_4932_abd9034ad167 style ae8fc91c_5fec_bf25_4932_abd9034ad167 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/features/directives/CodeSample.ts lines 359–388
function matchLang(lang: string) {
switch (lang) {
case 'tsx':
return 'tsx'
case 'ts':
return 'typescript'
case 'jsx':
return 'jsx'
case 'js':
return 'javascript'
case 'json':
return 'json'
case 'py':
return 'python'
case 'sh':
return 'bash'
case 'kt':
return 'kotlin'
case 'dart':
return 'dart'
case 'swift':
return 'swift'
case 'sql':
return 'sql'
case 'svelte':
return 'svelte'
default:
return null
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does matchLang() do?
matchLang() is a function in the supabase codebase.
What calls matchLang()?
matchLang() is called by 1 function(s): rewriteNodes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free