Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🌐 (i18n): remove Chinese Trans fallback children (#17009)

H-TTTTTbcf99f14172a
diff --git a/src/features/DataImporter/Error.tsx b/src/features/DataImporter/Error.tsx
index a78ef4865c7..3f20a12161e 100644
--- a/src/features/DataImporter/Error.tsx
+++ b/src/features/DataImporter/Error.tsx
@@ -39,22 +39,24 @@ const Error = memo<ErrorProps>(({ error, onClick }) => {
}
subTitle={
<Balancer>
- <Trans i18nKey="importModal.error.desc" ns={'common'}>
- 非常抱歉,数据库升级过程发生异常。请重试升级,或
- <a
- aria-label={'issue'}
- href={GITHUB_ISSUES}
- rel="noreferrer"
- target="_blank"
- onClick={(e) => {
- e.preventDefault();
- githubService.submitImportError(error!);
- }}
- >
- 提交问题
- </a>
- 我们将会第一时间帮你排查问题。
- </Trans>
+ <Trans
+ i18nKey="importModal.error.desc"
+ ns={'common'}
+ components={[
+ <span key="0" />,
+ <a
+ aria-label={'issue'}
+ href={GITHUB_ISSUES}
+ key="1"
+ rel="noreferrer"
+ target="_blank"
+ onClick={(e) => {
+ e.preventDefault();
+ githubService.submitImportError(error!);
+ }}
+ />,
+ ]}
+ />
</Balancer>
}
/>
diff --git a/src/features/FileViewer/NotSupport/index.tsx b/src/features/FileViewer/NotSupport/index.tsx
index 07ef59e7fe5..8c74f384025 100644
--- a/src/features/FileViewer/NotSupport/index.tsx
+++ b/src/features/FileViewer/NotSupport/index.tsx
@@ -35,17 +35,20 @@ const NotSupport: ComponentType<NotSupportProps> = ({ fileName, url, style }) =>
<Flexbox align={'center'} gap={12}>
<FluentEmoji emoji={'👀'} size={64} />
<Flexbox style={{ textAlign: 'center' }}>
- <Trans i18nKey="preview.unsupportedFileAndContact" ns={'file'}>
- 此文件格式暂不支持在线预览,如有预览诉求,欢迎
- <a
- aria-label={'todo'}
- href={MORE_FILE_PREVIEW_REQUEST_URL}
- rel="noreferrer"
- target="_blank"
- >
- 反馈给我们
- </a>
- </Trans>
+ <Trans
+ i18nKey="preview.unsupportedFileAndContact"
+ ns={'file'}
+ components={[
+ <span key="0" />,
+ <a
+ aria-label={'todo'}
+ href={MORE_FILE_PREVIEW_REQUEST_URL}
+ key="1"
+ rel="noreferrer"
+ target="_blank"
+ />,
+ ]}
+ />
</Flexbox>
{url && (
<Button