소스 검색

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 9 달 전
부모
커밋
f200b92800
1개의 변경된 파일37개의 추가작업 그리고 39개의 파일을 삭제
  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,