mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-19 02:57:27 +00:00
fix: channel affinity (#2799)
* fix: channel affinity log styles * fix: Issue with incorrect data storage when switching key sources * feat: support not retrying after a single rule configuration fails * fix: render channel affinity tooltip as multiline content * feat: channel affinity cache hit * fix: prevent ChannelAffinityUsageCacheModal infinite loading and hide data before fetch * chore: format backend with gofmt and frontend with prettier/eslint autofix
This commit is contained in:
@@ -21,77 +21,66 @@ import { defineConfig } from 'i18next-cli';
|
||||
|
||||
/** @type {import('i18next-cli').I18nextToolkitConfig} */
|
||||
export default defineConfig({
|
||||
locales: [
|
||||
"zh",
|
||||
"en",
|
||||
"fr",
|
||||
"ru",
|
||||
"ja",
|
||||
"vi"
|
||||
],
|
||||
locales: ['zh', 'en', 'fr', 'ru', 'ja', 'vi'],
|
||||
extract: {
|
||||
input: [
|
||||
"src/**/*.{js,jsx,ts,tsx}"
|
||||
],
|
||||
ignore: [
|
||||
"src/i18n/**/*"
|
||||
],
|
||||
output: "src/i18n/locales/{{language}}.json",
|
||||
input: ['src/**/*.{js,jsx,ts,tsx}'],
|
||||
ignore: ['src/i18n/**/*'],
|
||||
output: 'src/i18n/locales/{{language}}.json',
|
||||
ignoredAttributes: [
|
||||
"accept",
|
||||
"align",
|
||||
"aria-label",
|
||||
"autoComplete",
|
||||
"className",
|
||||
"clipRule",
|
||||
"color",
|
||||
"crossOrigin",
|
||||
"data-index",
|
||||
"data-name",
|
||||
"data-testid",
|
||||
"data-type",
|
||||
"defaultActiveKey",
|
||||
"direction",
|
||||
"editorType",
|
||||
"field",
|
||||
"fill",
|
||||
"fillRule",
|
||||
"height",
|
||||
"hoverStyle",
|
||||
"htmlType",
|
||||
"id",
|
||||
"itemKey",
|
||||
"key",
|
||||
"keyPrefix",
|
||||
"layout",
|
||||
"margin",
|
||||
"maxHeight",
|
||||
"mode",
|
||||
"name",
|
||||
"overflow",
|
||||
"placement",
|
||||
"position",
|
||||
"rel",
|
||||
"role",
|
||||
"rowKey",
|
||||
"searchPosition",
|
||||
"selectedStyle",
|
||||
"shape",
|
||||
"size",
|
||||
"style",
|
||||
"theme",
|
||||
"trigger",
|
||||
"uploadTrigger",
|
||||
"validateStatus",
|
||||
"value",
|
||||
"viewBox",
|
||||
"width"
|
||||
'accept',
|
||||
'align',
|
||||
'aria-label',
|
||||
'autoComplete',
|
||||
'className',
|
||||
'clipRule',
|
||||
'color',
|
||||
'crossOrigin',
|
||||
'data-index',
|
||||
'data-name',
|
||||
'data-testid',
|
||||
'data-type',
|
||||
'defaultActiveKey',
|
||||
'direction',
|
||||
'editorType',
|
||||
'field',
|
||||
'fill',
|
||||
'fillRule',
|
||||
'height',
|
||||
'hoverStyle',
|
||||
'htmlType',
|
||||
'id',
|
||||
'itemKey',
|
||||
'key',
|
||||
'keyPrefix',
|
||||
'layout',
|
||||
'margin',
|
||||
'maxHeight',
|
||||
'mode',
|
||||
'name',
|
||||
'overflow',
|
||||
'placement',
|
||||
'position',
|
||||
'rel',
|
||||
'role',
|
||||
'rowKey',
|
||||
'searchPosition',
|
||||
'selectedStyle',
|
||||
'shape',
|
||||
'size',
|
||||
'style',
|
||||
'theme',
|
||||
'trigger',
|
||||
'uploadTrigger',
|
||||
'validateStatus',
|
||||
'value',
|
||||
'viewBox',
|
||||
'width',
|
||||
],
|
||||
sort: true,
|
||||
disablePlurals: false,
|
||||
removeUnusedKeys: false,
|
||||
nsSeparator: false,
|
||||
keySeparator: false,
|
||||
mergeNamespaces: true
|
||||
}
|
||||
});
|
||||
mergeNamespaces: true,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user