i18next.config.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. Copyright (C) 2025 QuantumNous
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Affero General Public License as
  5. published by the Free Software Foundation, either version 3 of the
  6. License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Affero General Public License for more details.
  11. You should have received a copy of the GNU Affero General Public License
  12. along with this program. If not, see <https://www.gnu.org/licenses/>.
  13. For commercial licensing, please contact support@quantumnous.com
  14. */
  15. import { defineConfig } from 'i18next-cli';
  16. /** @type {import('i18next-cli').I18nextToolkitConfig} */
  17. export default defineConfig({
  18. locales: [
  19. "zh",
  20. "en",
  21. "fr"
  22. ],
  23. extract: {
  24. input: [
  25. "src/**/*.{js,jsx,ts,tsx}"
  26. ],
  27. ignore: [
  28. "src/i18n/**/*"
  29. ],
  30. output: "src/i18n/locales/{{language}}.json",
  31. ignoredAttributes: [
  32. "accept",
  33. "align",
  34. "aria-label",
  35. "autoComplete",
  36. "className",
  37. "clipRule",
  38. "color",
  39. "crossOrigin",
  40. "data-index",
  41. "data-name",
  42. "data-testid",
  43. "data-type",
  44. "defaultActiveKey",
  45. "direction",
  46. "editorType",
  47. "field",
  48. "fill",
  49. "fillRule",
  50. "height",
  51. "hoverStyle",
  52. "htmlType",
  53. "id",
  54. "itemKey",
  55. "key",
  56. "keyPrefix",
  57. "layout",
  58. "margin",
  59. "maxHeight",
  60. "mode",
  61. "name",
  62. "overflow",
  63. "placement",
  64. "position",
  65. "rel",
  66. "role",
  67. "rowKey",
  68. "searchPosition",
  69. "selectedStyle",
  70. "shape",
  71. "size",
  72. "style",
  73. "theme",
  74. "trigger",
  75. "uploadTrigger",
  76. "validateStatus",
  77. "value",
  78. "viewBox",
  79. "width"
  80. ],
  81. sort: true,
  82. disablePlurals: false,
  83. removeUnusedKeys: true,
  84. nsSeparator: false,
  85. keySeparator: false,
  86. mergeNamespaces: true
  87. }
  88. });