2aa9d73325
集中保留原版权声明,移除文件头检查和全局测试忽略规则。验证:全量单测、受影响用例复测及静态检查通过。
68 lines
1.3 KiB
JavaScript
68 lines
1.3 KiB
JavaScript
import { defineConfig } from 'i18next-cli';
|
|
|
|
/** @type {import('i18next-cli').I18nextToolkitConfig} */
|
|
export default defineConfig({
|
|
locales: ['zh', 'zh-TW', 'en', 'fr', 'ru', 'ja', 'ko', 'vi', 'th'],
|
|
extract: {
|
|
input: ['src/**/*.{js,jsx,ts,tsx}'],
|
|
ignore: ['src/i18n/**/*'],
|
|
output: 'src/i18n/locales/{{language}}.json',
|
|
ignoredAttributes: [
|
|
'accept',
|
|
'align',
|
|
'aria-label',
|
|
'autoComplete',
|
|
'className',
|
|
'clipRule',
|
|
'color',
|
|
'crossOrigin',
|
|
'data-index',
|
|
'data-name',
|
|
'data-testid',
|
|
'data-type',
|
|
'defaultActiveKey',
|
|
'direction',
|
|
'editorType',
|
|
'field',
|
|
'fill',
|
|
'fillRule',
|
|
'height',
|
|
'hoverStyle',
|
|
'htmlType',
|
|
'id',
|
|
'itemKey',
|
|
'key',
|
|
'keyPrefix',
|
|
'layout',
|
|
'margin',
|
|
'maxHeight',
|
|
'mode',
|
|
'name',
|
|
'overflow',
|
|
'placement',
|
|
'position',
|
|
'rel',
|
|
'role',
|
|
'rowKey',
|
|
'searchPosition',
|
|
'selectedStyle',
|
|
'shape',
|
|
'size',
|
|
'style',
|
|
'theme',
|
|
'trigger',
|
|
'uploadTrigger',
|
|
'validateStatus',
|
|
'value',
|
|
'viewBox',
|
|
'width',
|
|
],
|
|
sort: true,
|
|
disablePlurals: false,
|
|
removeUnusedKeys: false,
|
|
nsSeparator: false,
|
|
keySeparator: false,
|
|
mergeNamespaces: true,
|
|
},
|
|
});
|