UNPKG
@c-sheep/i18n-extract-cli
Version:
latest (1.0.0)
1.0.0
这是一款能够自动将代码里的中文转成i18n国际化标记的命令行工具。当然,你也可以用它实现将中文语言包自动翻译成其他语言。适用于vue2、vue3和react
@c-sheep/i18n-extract-cli
/
dist
/
shared
/
transform-code.d.ts
10 lines
(9 loc)
•
287 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
export
function
babelPlugin
({ types: t }: { types: any; })
: {
visitor: {
BlockStatement
(path: any):
void
; }; };
export
function
transformCode
(code: any)
: string;
export
function
parseSync
(resultCode: any, errorhandles?: any[], plugins?: any[], presets?: any[])
: any;