Files
new-api-oiss/web/i18next.config.ts
Dmitriy Safonov bd02dca979 feat: add i18n configuration and expand translation glossary
Add comprehensive i18next configuration for internationalization support with Chinese, English, and French locales. Configure extraction settings and ignore patterns for React components. Expand translation glossary with security and billing terminology including Two-Factor Authentication, 2FA, and pricing multiplier terms.
2025-10-11 04:35:22 +03:00

76 lines
1.3 KiB
TypeScript

import { defineConfig } from 'i18next-cli';
export default defineConfig({
locales: [
"zh",
"en",
"fr"
],
extract: {
input: [
"src/**/*.{js,jsx,ts,tsx}"
],
ignore: [
"src/i18n/**/*"
],
output: "src/i18n/locales/{{language}}.json",
ignoredAttributes: [
"data-testid",
"aria-label",
"role",
"className",
"id",
"key",
"shape",
"color",
"size",
"theme",
"position",
"layout",
"margin",
"trigger",
"itemKey",
"defaultActiveKey",
"field",
"value",
"rel",
"name",
"validateStatus",
"direction",
"clipRule",
"fillRule",
"viewBox",
"editorType",
"autoComplete",
"fill",
"searchPosition",
"uploadTrigger",
"accept",
"uploadTrigger",
"placement",
"rowKey",
"style",
"align",
"crossOrigin",
"field",
"data-name",
"data-index",
"data-type",
"height",
"width",
"overflow",
"keyPrefix",
"htmlType",
"mode",
"maxHeight",
"hoverStyle",
"selectedStyle"
],
sort: true,
disablePlurals: true,
removeUnusedKeys: true,
nsSeparator: false,
keySeparator: false,
mergeNamespaces: true
}
});