UNPKG

i18n-transform-cli

Version:

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

7 lines (6 loc) 191 B
import type { StringObject } from '../../types'; /** * @example * 将{a: {bb: 1}} 转成 {'a.bb': 1} */ export declare function flatObjectDeep(data: StringObject): Record<string, string>;