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
/
parse.d.ts
6 lines
(5 loc)
•
262 B
TypeScript
View Raw
1
2
3
4
5
6
import
type
{
PluginItem
}
from
"@babel/core"
;
type
presetsType =
PluginItem
[] |
undefined
;
type
pluginsType =
PluginItem
[] |
undefined
;
export
declare
function
initParse
(
babelPresets
?: presetsType,
babelPlugins
?: pluginsType
):
(
code
:
string
) =>
any
;
export
{};