Browse Source

feat(i18n): reorganize and expand ignored attributes list

Reordered the ignoredAttributes array in i18next.config.js alphabetically and added several new attributes to prevent unnecessary translation extraction. This improves the localization process by excluding more non-translatable properties like accept, align, autoComplete, clipRule, crossOrigin, and others.
Dmitriy Safonov 5 months ago
parent
commit
c29eef9b15
1 changed files with 37 additions and 39 deletions
  1. 37 39
      web/i18next.config.js

+ 37 - 39
web/i18next.config.js

@@ -35,56 +35,54 @@ export default defineConfig({
     ],
     output: "src/i18n/locales/{{language}}.json",
     ignoredAttributes: [
-      "data-testid",
+      "accept",
+      "align",
       "aria-label",
-      "role",
+      "autoComplete",
       "className",
-      "id",
-      "key",
-      "shape",
+      "clipRule",
       "color",
-      "size",
-      "theme",
-      "position",
-      "layout",
-      "margin",
-      "trigger",
-      "itemKey",
+      "crossOrigin",
+      "data-index",
+      "data-name",
+      "data-testid",
+      "data-type",
       "defaultActiveKey",
-      "field",
-      "value",
-      "rel",
-      "name",
-      "validateStatus",
       "direction",
-      "clipRule",
-      "fillRule",
-      "viewBox",
       "editorType",
-      "autoComplete",
+      "field",
       "fill",
-      "searchPosition",
-      "uploadTrigger",
-      "accept",
-      "uploadTrigger",
+      "fillRule",
+      "height",
+      "hoverStyle",
+      "htmlType",
+      "id",
+      "itemKey",
+      "key",
+      "keyPrefix",
+      "layout",
+      "margin",
+      "maxHeight",
+      "mode",
+      "name",
+      "overflow",
       "placement",
+      "position",
+      "rel",
+      "role",
       "rowKey",
+      "searchPosition",
+      "selectedStyle",
+      "shape",
+      "size",
       "style",
-      "align",
-      "crossOrigin",
-      "field",
-      "data-name",
-      "data-index",
-      "data-type",
-      "height",
+      "theme",
+      "trigger",
+      "uploadTrigger",
+      "validateStatus",
+      "value",
+      "viewBox",
       "width",
-      "overflow",
-      "keyPrefix",
-      "htmlType",
-      "mode",
-      "maxHeight",
-      "hoverStyle",
-      "selectedStyle"
     ],
     sort: true,
     disablePlurals: true,