From c29eef9b15bd67b59674718c40788746ce275fb8 Mon Sep 17 00:00:00 2001 From: Dmitriy Safonov Date: Fri, 10 Oct 2025 01:14:13 +0300 Subject: [PATCH] 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. --- web/i18next.config.js | 86 +++++++++++++++++++++---------------------- 1 file changed, 42 insertions(+), 44 deletions(-) diff --git a/web/i18next.config.js b/web/i18next.config.js index 70ba89791..ada1cf64c 100644 --- a/web/i18next.config.js +++ b/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", + "crossOrigin", + "data-index", + "data-name", + "data-testid", + "data-type", + "defaultActiveKey", + "direction", + "editorType", + "field", + "fill", + "fillRule", + "height", + "hoverStyle", + "htmlType", + "id", + "itemKey", + "key", + "keyPrefix", "layout", "margin", - "trigger", - "itemKey", - "defaultActiveKey", - "field", - "value", - "rel", - "name", - "validateStatus", - "direction", - "clipRule", - "fillRule", - "viewBox", - "editorType", - "autoComplete", - "fill", - "searchPosition", - "uploadTrigger", - "accept", - "uploadTrigger", - "placement", - "rowKey", - "style", - "align", - "crossOrigin", - "field", - "data-name", - "data-index", - "data-type", - "height", - "width", - "overflow", - "keyPrefix", - "htmlType", - "mode", "maxHeight", - "hoverStyle", - "selectedStyle" + "mode", + "name", + "overflow", + "placement", + "position", + "rel", + "role", + "rowKey", + "searchPosition", + "selectedStyle", + "shape", + "size", + "style", + "theme", + "trigger", + "uploadTrigger", + "validateStatus", + "value", + "viewBox", + "width", ], sort: true, disablePlurals: true,