mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-03-30 02:05:21 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user