diff --git a/apps/android/src/screens/chat-error-boundary.tsx b/apps/android/src/screens/chat-error-boundary.tsx index dbcf069..fd29939 100644 --- a/apps/android/src/screens/chat-error-boundary.tsx +++ b/apps/android/src/screens/chat-error-boundary.tsx @@ -1,5 +1,6 @@ import { Component, type ErrorInfo, type ReactNode } from 'react' import { Pressable, StyleSheet, Text, View } from 'react-native' +import { strings } from '../locales/i18n' /** * Contains a render crash to one row instead of the whole screen. @@ -58,16 +59,16 @@ export class ChatErrorBoundary extends Component { render(): ReactNode { if (this.state.message === undefined) return this.props.children return - 这段内容渲染失败 + {strings.chat.renderFailed} {this.state.message} - 其余对话和输入框不受影响,可以正常继续。 + {strings.chat.renderFailedHint} this.setState({ message: undefined })}> - 重试 + {strings.common.retry} {this.props.onRetry === undefined ? null : ( - 重新加载会话 + {strings.chat.reloadSession} )}