canary_clis/dist/const.js
2022-10-11 15:25:18 +08:00

46 lines
1.1 KiB
JavaScript

"use strict";
/**
* @author linhuiw
* @desc 项目配置文件配置信息
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.PROJECT_CONFIG = exports.CANARY_CONFIG_FILE = void 0;
exports.CANARY_CONFIG_FILE = 'canary-config.json';
exports.PROJECT_CONFIG = {
dir: './.canary',
defaultConfig: {
canaryDir: './.canary',
srcLang: 'zh-CN',
distLangs: ['en-US', 'zh-CN'],
googleApiKey: '',
baiduApiKey: {
appId: '',
appKey: ''
},
baiduLangMap: {
['en-US']: 'en',
['zh-TW']: 'cht'
},
translateOptions: {
concurrentLimit: 10,
requestOptions: {}
},
defaultTranslateKeyApi: 'Pinyin',
importI18N: `import I18N from 'src/utils/I18N';`,
ignoreDir: '',
ignoreFile: ''
},
langMap: {
['en-US']: 'en',
['en_US']: 'en'
},
zhIndexFile: `import common from './common';
export default Object.assign({}, {
common
});`,
zhTestFile: `export default {
test: '测试'
}`,
};
//# sourceMappingURL=const.js.map