UNPKG

@c-sheep/i18n-extract-cli

Version:

这是一款能够自动将代码里的中文转成i18n国际化标记的命令行工具。当然,你也可以用它实现将中文语言包自动翻译成其他语言。适用于vue2、vue3和react

9 lines (8 loc) 348 B
import { StringObject } from "types"; interface RecordObj { [key: string]: RecordObj | string; } export declare function getOldLang(langPath: string): RecordObj; declare function getLang(langPath: string): Record<string, string>; export declare function saveLocale(localePath: string, resultKeyMap: StringObject): void; export default getLang;