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.
This commit is contained in:
Dmitriy Safonov
2025-10-10 01:14:13 +03:00
parent b472f9c5b5
commit c29eef9b15

View File

@@ -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,