Skip to content

Commit

Permalink
fix i81n
Browse files Browse the repository at this point in the history
  • Loading branch information
swuecho committed Mar 21, 2023
1 parent d898d28 commit 9bcba03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions web/src/locales/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export default {
deleteChatSessionsConfirm: '确定删除此记录?',
clearHistoryConfirm: '确定清空聊天记录?',
contextLength: '上下文数量, 默认10 (会话开始的2条 + 最近的8条)',
stopAnswer: '停止回答',
},
setting: {
setting: '设置',
Expand Down
12 changes: 6 additions & 6 deletions web/src/views/chat/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -513,14 +513,14 @@ onUnmounted(() => {
<NModal v-model:show="showModal">
<NCard style="width: 600px" title="会话设置" :bordered="false" size="huge" role="dialog" aria-modal="true">
<!-- <template #header-extra>
Oops!
</template> -->
<div> {{ $t(chat.contextLength) }}</div>
Oops!
</template> -->
<div> {{ $t('chat.contextLength') }}</div>
<NSlider v-model:value="sliderValue" :min="1" :max="20" :tooltip="false" />
<NInputNumber v-model:value="sliderValue" size="small" />
<!-- <template #footer>
Footer
</template> -->
Footer
</template> -->
</NCard>
</NModal>
<div id="scrollRef" ref="scrollRef" class="h-full overflow-hidden overflow-y-auto">
Expand All @@ -542,7 +542,7 @@ onUnmounted(() => {
<template #icon>
<SvgIcon icon="ri:stop-circle-line" />
</template>
Stop Responding
{{ $t('chat.stopAnswer') }}
</NButton>
</div>
</div>
Expand Down

0 comments on commit 9bcba03

Please sign in to comment.