Commit f200b928 by Dmitriy Safonov

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.
parent 54ad70de
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment