Skip to content

Commit 1d2c14c

Browse files
committed
feat: 增加多种语言支持
1 parent 5420b21 commit 1d2c14c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/cvbManager.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,16 @@ const g_objLanguageMapping: { [key: string]: string } = {
1515
'lh': 'lua',
1616
'py': 'python',
1717
'ts': 'typescript',
18-
'js': 'javascript'
18+
'js': 'javascript',
19+
'cs': 'c#', // C#
20+
'java': 'java', // Java
21+
'go': 'go', // Go
22+
'rb': 'ruby', // Ruby
23+
'swift': 'swift', // Swift
24+
'kt': 'kotlin', // Kotlin
25+
'php': 'php', // PHP
26+
'rust': 'rust', // Rust
27+
'dart': 'dart' // Dart
1928
};
2029

2130
// ================== CVB 核心类 ==================

0 commit comments

Comments
 (0)