[feat] added languages

This commit is contained in:
kwaroran
2023-07-08 10:07:57 +09:00
parent cf1bd36968
commit 58e876dae0
3 changed files with 23 additions and 17 deletions

View File

@@ -325,7 +325,11 @@ export const languageEnglish = {
logout: "Logout",
loadDataFromAccount: "Load Data from Account",
saveCurrentDataToAccount: "Save Current Data to Account",
chatAssumed: "Approximately {} Chats Played",
chatAssumed: "",
proxyAPIKey: "Proxy Key/Password",
proxyRequestModel: "Rroxy Request Model"
proxyRequestModel: "Proxy Request Model",
officialWiki: "Official Wiki",
officialWikiDesc: "Official Wiki for RisuAI. feel free to see.",
officialDiscord: "Official Discord",
officialDiscordDesc: "Official Discord to talk about RisuAI"
}

View File

@@ -288,5 +288,17 @@ export const languageKorean = {
notLoggedIn: "Risu Account에 로그인되지 않음",
googleDriveInfo: "구글 드라이브에 연동해서 데이터를 동기화하세요.",
googleDriveConnection: "구글 드라이브 연동하기",
googleDriveConnected: "구글 드라이브 연동됨"
googleDriveConnected: "구글 드라이브 연동됨",
SaveDataInAccount: "계정에 데이터 저장",
dataSavingInAccount: "계정에 데이터 저장 중",
logout: "로그아웃",
loadDataFromAccount: "계정에서 데이터 불러오기",
saveCurrentDataToAccount: "계정에 데이터 현재 덮어쓰기",
chatAssumed: "",
proxyAPIKey: "프록시 키/패스워드",
proxyRequestModel: "프록시 요청 모델",
officialWiki: "공식 위키",
officialWikiDesc: "리스AI의 공식 위키. 자유롭게 보세요.",
officialDiscord: "공식 디스코드",
officialDiscordDesc: "리스AI에 대해 자유롭게 대화하세요."
}

View File

@@ -23,25 +23,15 @@
<div class="w-full flex p-4 flex-col text-white max-w-4xl">
{#if !openHub}
<div class="grid grid-cols-1 gap-4 md:grid-cols-2">
<button class="bg-darkbg rounded-md p-6 flex flex-col transition-shadow hover:ring-1" on:click={() => {
openURL("https://github.com/kwaroran/RisuAI/wiki/RisuAI-Quick-Start")
}}>
<h1 class="text-2xl font-bold text-start">Quick Start</h1>
<span class="mt-2 text-gray-400 text-start">Simple Guide to start RisuAI</span>
</button>
<button class="bg-darkbg rounded-md p-6 flex flex-col transition-shadow hover:ring-1" on:click={() => {
openURL("https://github.com/kwaroran/RisuAI/wiki")
}}>
<h1 class="text-2xl font-bold text-start">Official Wiki</h1>
<span class="mt-2 text-gray-400 text-start">Official Wiki for RisuAI. anyone can see and anyone who has github account can edit.</span>
</button>
<button class="bg-darkbg rounded-md p-6 flex flex-col transition-shadow hover:ring-1" on:click={() => {sideBarStore.set(true)}}>
<h1 class="text-2xl font-bold text-start">Your Characters</h1>
<span class="mt-2 text-gray-400 text-start">Opens your character list. you can open with pressing arrow button in top left corner too.</span>
<h1 class="text-2xl font-bold text-start">{language.officialWiki}</h1>
<span class="mt-2 text-gray-400 text-start">{language.officialWikiDesc}</span>
</button>
<button class="bg-darkbg rounded-md p-6 flex flex-col transition-shadow hover:ring-1" on:click={() => {openURL("https://discord.gg/JzP8tB9ZK8")}}>
<h1 class="text-2xl font-bold text-start">Official Discord</h1>
<span class="mt-2 text-gray-400 text-start">Official Discord to talk about RisuAI</span>
<h1 class="text-2xl font-bold text-start">{language.officialDiscord}</h1>
<span class="mt-2 text-gray-400 text-start">{language.officialDiscordDesc}</span>
</button>
</div>
{#await getRisuHub({