@c-sheep/i18n-extract-cli
Version:
这是一款能够自动将代码里的中文转成i18n国际化标记的命令行工具。当然,你也可以用它实现将中文语言包自动翻译成其他语言。适用于vue2、vue3和react
6 lines (5 loc) • 458 B
TypeScript
import { CommandOptions, StringObject } from "types";
export declare const getPathFullFile: (filePath: string) => string[];
export declare const getBaseLanguageMap: (localePath: string, language: string, regexp?: RegExp) => StringObject;
export declare const setLanguageModuleSave: (languageMapData: StringObject, langPath: string, emptyRemove?: boolean) => void;
export declare const translateLaguage: (options: Pick<CommandOptions, "configFile">) => void;