i18next.config.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. "ru",
  23. "ja",
  24. "vi"
  25. ],
  26. extract: {
  27. input: [
  28. "src/**/*.{js,jsx,ts,tsx}"
  29. ],
  30. ignore: [
  31. "src/i18n/**/*"
  32. ],
  33. output: "src/i18n/locales/{{language}}.json",
  34. ignoredAttributes: [
  35. "accept",
  36. "align",
  37. "aria-label",
  38. "autoComplete",
  39. "className",
  40. "clipRule",
  41. "color",
  42. "crossOrigin",
  43. "data-index",
  44. "data-name",
  45. "data-testid",
  46. "data-type",
  47. "defaultActiveKey",
  48. "direction",
  49. "editorType",
  50. "field",
  51. "fill",
  52. "fillRule",
  53. "height",
  54. "hoverStyle",
  55. "htmlType",
  56. "id",
  57. "itemKey",
  58. "key",
  59. "keyPrefix",
  60. "layout",
  61. "margin",
  62. "maxHeight",
  63. "mode",
  64. "name",
  65. "overflow",
  66. "placement",
  67. "position",
  68. "rel",
  69. "role",
  70. "rowKey",
  71. "searchPosition",
  72. "selectedStyle",
  73. "shape",
  74. "size",
  75. "style",
  76. "theme",
  77. "trigger",
  78. "uploadTrigger",
  79. "validateStatus",
  80. "value",
  81. "viewBox",
  82. "width"
  83. ],
  84. sort: true,
  85. disablePlurals: false,
  86. removeUnusedKeys: false,
  87. nsSeparator: false,
  88. keySeparator: false,
  89. mergeNamespaces: true
  90. }
  91. });