47 lines
1.1 KiB
JavaScript
47 lines
1.1 KiB
JavaScript
"use strict";
|
|
/**
|
|
* @author zhaoyingbo
|
|
* @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: {
|
|
isJsProj: true,
|
|
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
|