帆软决策平台数据连接界面库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
421 B

const { resolve } = require('path');
const { writeFileSync } = require('fs');
const propertiesReader = require('properties-reader');
let content = '';
const properties = propertiesReader(resolve(__dirname, '../../i18n/zh_cn.properties'));
properties.each((key, value) => {
content += ` '${key}': '${value}',\n`;
});
writeFileSync(resolve(__dirname, '../../private/i18n.ts'), `export default {
${content}};
`);