From 72067fd246ae8f3f25a0e475b664d22a7f11781d Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Thu, 1 Apr 2021 14:01:25 +0800 Subject: [PATCH] Add wish tally link --- src/locales/en.json | 1 + src/locales/id.json | 1 + src/routes/wish/_summary.svelte | 10 ++++++++++ 3 files changed, 12 insertions(+) diff --git a/src/locales/en.json b/src/locales/en.json index 9e13e564..8c4fbd56 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -25,6 +25,7 @@ "manual": "If you want to manually input the data, you can enable it here:", "manualButton": "Enable Manual Input", "errorBanner": "Banner time missmatch! Please adjust your server on settings page. Still not working? please leave a message on Discord 😅", + "globalWishTally": "Global Wish Tally", "import": { "title": "Import Wish History", "faqsButton": "FAQ - READ FIRST", diff --git a/src/locales/id.json b/src/locales/id.json index d21853ae..65925c61 100644 --- a/src/locales/id.json +++ b/src/locales/id.json @@ -25,6 +25,7 @@ "manual": "Jika kamu ingin memasukkan datanya secara manual, kamu bisa menyalakannya disini:", "manualButton": "Nyalakan Input Manual", "errorBanner": "Waktu banner salah! Coba sesuaikan server di halaman settings. Masih gak bisa? tolong chat di Discord 😅", + "globalWishTally": "Perhitungan Pity Wish Global", "import": { "title": "Import Riwayat Wish", "faqsButton": "FAQS - BACA DULU", diff --git a/src/routes/wish/_summary.svelte b/src/routes/wish/_summary.svelte index 310948aa..c23e7ae3 100644 --- a/src/routes/wish/_summary.svelte +++ b/src/routes/wish/_summary.svelte @@ -12,6 +12,8 @@ import { readSave, updateTime, fromRemote } from '../../stores/saveManager'; import SummaryItem from './_summaryItem.svelte'; import GiveawayModal from './_giveaway.svelte'; + import Icon from '../../components/Icon.svelte'; + import { mdiEarth, mdiGlobeLight, mdiGlobeModel } from '@mdi/js'; const { open: openModal } = getContext('simple-modal'); @@ -171,6 +173,14 @@ {$t('wish.wishesWorth')} primogem {numberFormat.format(totalWish * 160)} + + + {$t('wish.globalWishTally')} +