perf: add localization for sider (#911)

main
吴杉(Shan Wu) 2 years ago committed by GitHub
parent c3f431118b
commit 799af86739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,6 +28,7 @@ export default {
unauthorizedTips: 'Unauthorized, please verify first.', unauthorizedTips: 'Unauthorized, please verify first.',
}, },
chat: { chat: {
newChatButton: 'New Chat',
placeholder: 'Ask me anything...(Shift + Enter = line break)', placeholder: 'Ask me anything...(Shift + Enter = line break)',
placeholderMobile: 'Ask me anything...', placeholderMobile: 'Ask me anything...',
copy: 'Copy', copy: 'Copy',
@ -70,6 +71,7 @@ export default {
balance: 'API Balance', balance: 'API Balance',
}, },
store: { store: {
siderButton: 'Prompt Store',
local: 'Local', local: 'Local',
online: 'Online', online: 'Online',
title: 'Title', title: 'Title',

@ -28,6 +28,7 @@ export default {
unauthorizedTips: '未经授权,请先进行验证。', unauthorizedTips: '未经授权,请先进行验证。',
}, },
chat: { chat: {
newChatButton: '新建聊天',
placeholder: '来说点什么吧...Shift + Enter = 换行)', placeholder: '来说点什么吧...Shift + Enter = 换行)',
placeholderMobile: '来说点什么...', placeholderMobile: '来说点什么...',
copy: '复制', copy: '复制',
@ -70,6 +71,7 @@ export default {
balance: 'API余额', balance: 'API余额',
}, },
store: { store: {
siderButton: '提示词商店',
local: '本地', local: '本地',
online: '在线', online: '在线',
title: '标题', title: '标题',

@ -28,6 +28,7 @@ export default {
unauthorizedTips: '未經授權,請先進行驗證。', unauthorizedTips: '未經授權,請先進行驗證。',
}, },
chat: { chat: {
newChatButton: '新建對話',
placeholder: '來說點什麼...Shift + Enter = 換行)', placeholder: '來說點什麼...Shift + Enter = 換行)',
placeholderMobile: '來說點什麼...', placeholderMobile: '來說點什麼...',
copy: '複製', copy: '複製',
@ -70,6 +71,7 @@ export default {
balance: 'API余額', balance: 'API余額',
}, },
store: { store: {
siderButton: '提示詞商店',
local: '本機', local: '本機',
online: '線上', online: '線上',
title: '標題', title: '標題',

@ -73,7 +73,7 @@ watch(
<main class="flex flex-col flex-1 min-h-0"> <main class="flex flex-col flex-1 min-h-0">
<div class="p-4"> <div class="p-4">
<NButton dashed block @click="handleAdd"> <NButton dashed block @click="handleAdd">
New chat {{ $t('chat.newChatButton') }}
</NButton> </NButton>
</div> </div>
<div class="flex-1 min-h-0 pb-4 overflow-hidden"> <div class="flex-1 min-h-0 pb-4 overflow-hidden">
@ -81,7 +81,7 @@ watch(
</div> </div>
<div class="p-4"> <div class="p-4">
<NButton block @click="show = true"> <NButton block @click="show = true">
Prompt Store {{ $t('store.siderButton') }}
</NButton> </NButton>
</div> </div>
</main> </main>

Loading…
Cancel
Save