i18next.config.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import { defineConfig } from 'i18next-cli';
  2. export default defineConfig({
  3. locales: [
  4. "zh",
  5. "en",
  6. "fr"
  7. ],
  8. extract: {
  9. input: [
  10. "src/**/*.{js,jsx,ts,tsx}"
  11. ],
  12. ignore: [
  13. "src/i18n/**/*"
  14. ],
  15. output: "src/i18n/locales/{{language}}.json",
  16. ignoredAttributes: [
  17. "data-testid",
  18. "aria-label",
  19. "role",
  20. "className",
  21. "id",
  22. "key",
  23. "shape",
  24. "color",
  25. "size",
  26. "theme",
  27. "position",
  28. "layout",
  29. "margin",
  30. "trigger",
  31. "itemKey",
  32. "defaultActiveKey",
  33. "field",
  34. "value",
  35. "rel",
  36. "name",
  37. "validateStatus",
  38. "direction",
  39. "clipRule",
  40. "fillRule",
  41. "viewBox",
  42. "editorType",
  43. "autoComplete",
  44. "fill",
  45. "searchPosition",
  46. "uploadTrigger",
  47. "accept",
  48. "uploadTrigger",
  49. "placement",
  50. "rowKey",
  51. "style",
  52. "align",
  53. "crossOrigin",
  54. "field",
  55. "data-name",
  56. "data-index",
  57. "data-type",
  58. "height",
  59. "width",
  60. "overflow",
  61. "keyPrefix",
  62. "htmlType",
  63. "mode",
  64. "maxHeight",
  65. "hoverStyle",
  66. "selectedStyle"
  67. ],
  68. sort: true,
  69. disablePlurals: true,
  70. removeUnusedKeys: true,
  71. nsSeparator: false,
  72. keySeparator: false,
  73. mergeNamespaces: true
  74. }
  75. });