UNPKG

w-vue-middle

Version:

统一公共服务组件

107 lines (104 loc) 2.76 kB
module.exports = { scope: 'library', input: './', output: '', exclude: [ '**/node_modules/**/*', '**/locales/**/*', '**/i18n/**/*', '**/docs/**/*', '**/example/**/*', '**/utils/**/*', '**/python/**/*', ], languages: [ { name: 'zh_CN', title: $t('简体中文(中国)'), default: true, active: true }, { name: 'en_US', title: $t('英语(美国)') }, ], defaultLanguage: 'zh_CN', activeLanguage: 'zh_CN', rules: { js: { caller: '', functionName: '$t', customizeKey: function getCustomizeKey(key, path) { return key; }, forceImport: false, importDeclaration: 'import { t } from "@/i18n"', }, ts: { caller: '', functionName: '$t', customizeKey: function getCustomizeKey(key, path) { return key; }, forceImport: false, importDeclaration: 'import { t } from "@/i18n"', }, cjs: { caller: '', functionName: '$t', customizeKey: function getCustomizeKey(key, path) { return key; }, forceImport: false, importDeclaration: 'import { t } from "@/i18n"', }, mjs: { caller: '', functionName: '$t', customizeKey: function getCustomizeKey(key, path) { return key; }, forceImport: false, importDeclaration: 'import { t } from "@/i18n"', }, jsx: { caller: '', functionName: '$t', customizeKey: function getCustomizeKey(key, path) { return key; }, forceImport: false, importDeclaration: 'import { t } from "@/i18n"', functionSnippets: '', }, tsx: { caller: '', functionName: '$t', customizeKey: function getCustomizeKey(key, path) { return key; }, forceImport: false, importDeclaration: 'import { t } from "@/i18n"', functionSnippets: '', }, vue: { caller: 'this', functionNameInTemplate: '$t', functionNameInScript: '$t', customizeKey: function getCustomizeKey(key, path) { return key; }, forceImport: false, importDeclaration: 'import { t } from "@/i18n"', tagOrder: ['template', 'script', 'style'], }, }, incremental: true, skipExtract: false, localePath: './src/i18n/locales/zh_CN.js', localeFileType: 'js', excelPath: './src/i18n/locales.xlsx', exportExcel: false, locales: ['zh_CN'], globalRule: { ignoreMethods: [] }, adjustKeyMap: function (allKeyValue, currentFileKeyMap, currentFilePath) { return allKeyValue; }, namespaces: { application: { id: 'winning-dps-df-control-web', name: $t('公共组件库') }, project: { id: 'winning-dps-df-control-web', name: $t('公共组件库') }, }, };