From e8e74d39b2f010766047d557e50789949fc0dce2 Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Fri, 2 Apr 2021 15:41:57 +0800 Subject: [PATCH] Localize footer --- src/locales/en.json | 7 +++++++ src/locales/id.json | 7 +++++++ src/routes/_layout.svelte | 11 ++++++----- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index 7a923f60..ca801a57 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -394,5 +394,12 @@ "download": "Download Both Data", "lastModified": "Last modified", "or": "OR" + }, + "footer": { + "affliate": "Paimon.moe is not affiliated with miHoYo.", + "copyright": "Genshin Impact, game content and materials are trademarks and copyrights of miHoYo.", + "discord": "Join Our Discord", + "community": "Community Links", + "official": "Official Links" } } \ No newline at end of file diff --git a/src/locales/id.json b/src/locales/id.json index b311563d..6446d2fb 100644 --- a/src/locales/id.json +++ b/src/locales/id.json @@ -394,5 +394,12 @@ "download": "Download Kedua Data", "lastModified": "Terakhir dimodifikasi", "or": "ATAU" + }, + "footer": { + "affliate": "Paimon.moe tidak berafiliasi dengan miHoYo.", + "copyright": "Genshin Impact, konten game dan material adalah trademark dan copyright milik miHoYo.", + "discord": "Gabung ke Discord", + "community": "Link Komunitas", + "official": "Link Official" } } \ No newline at end of file diff --git a/src/routes/_layout.svelte b/src/routes/_layout.svelte index 4dd922d3..0c2ed7cc 100644 --- a/src/routes/_layout.svelte +++ b/src/routes/_layout.svelte @@ -3,6 +3,7 @@ import { fade } from 'svelte/transition'; import { derived } from 'svelte/store'; import { stores } from '@sapper/app'; + import { t } from 'svelte-i18n'; import Modal from 'svelte-simple-modal'; @@ -58,21 +59,21 @@ {/if}

- Paimon.moe is not affiliated with miHoYo.
- Genshin Impact, game content and materials are trademarks and copyrights of miHoYo. + {$t('footer.affliate')}
+ {$t('footer.copyright')}

- Join Our Discord + {$t('footer.discord')}
- Community Links + {$t('footer.community')} Telegram
- Official Links + {$t('footer.official')}