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.
This commit is contained in:
76
web/i18next.config.ts
Normal file
76
web/i18next.config.ts
Normal file
@@ -0,0 +1,76 @@
|
||||
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
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user