Skip to content

Commit

Permalink
fix: i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricbet committed Apr 3, 2024
1 parent 0a7bf9d commit 020af17
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/ai-native/src/browser/chat/chat.view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,18 @@ export const AIChatView = observer(() => {
<span className={styles.title}>{aiAssistantName}</span>
</div>
<div className={styles.right}>
<Popover insertClass={styles.popover_icon} id={'ai-chat-header-clear'} title='清空'>
<Popover
insertClass={styles.popover_icon}
id={'ai-chat-header-clear'}
title={localize('aiNative.operate.clear.title')}
>
<EnhanceIcon wrapperClassName={styles.action_btn} className={getIcon('clear')} onClick={handleClear} />
</Popover>
<Popover insertClass={styles.popover_icon} id={'ai-chat-header-close'} title='关闭'>
<Popover
insertClass={styles.popover_icon}
id={'ai-chat-header-close'}
title={localize('aiNative.operate.close.title')}
>
<EnhanceIcon
wrapperClassName={styles.action_btn}
className={getIcon('window-close')}
Expand Down
2 changes: 2 additions & 0 deletions packages/i18n/src/common/en-US.lang.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1464,6 +1464,8 @@ export const localizationBundle = {
'aiNative.operate.discard.title': 'Discard',
'aiNative.operate.afresh.title': 'Afresh',
'aiNative.operate.stop.title': 'Stop',
'aiNative.operate.close.title': 'Close',
'aiNative.operate.clear.title': 'Clear',

'aiNative.chat.welcome.loading.text': 'Initializing...',
// #endregion AI Native
Expand Down
2 changes: 2 additions & 0 deletions packages/i18n/src/common/zh-CN.lang.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1231,6 +1231,8 @@ export const localizationBundle = {
'aiNative.operate.discard.title': '丢弃',
'aiNative.operate.afresh.title': '重新生成',
'aiNative.operate.stop.title': '停止',
'aiNative.operate.close.title': '关闭',
'aiNative.operate.clear.title': '清空',

'aiNative.chat.welcome.loading.text': '初始化中...',
// #endregion AI Native
Expand Down

0 comments on commit 020af17

Please sign in to comment.