diff --git a/src/webpage/home.html b/src/webpage/home.html index f8bb478..c681998 100644 --- a/src/webpage/home.html +++ b/src/webpage/home.html @@ -55,6 +55,20 @@
You can help translate Jank Client into your own language!
+diff --git a/src/webpage/home.ts b/src/webpage/home.ts index 161dc89..e3c481d 100644 --- a/src/webpage/home.ts +++ b/src/webpage/home.ts @@ -13,6 +13,10 @@ const serverbox = document.getElementById("instancebox") as HTMLDivElement; const compatableInstances = document.getElementById("compatableInstances"); const box3title = document.getElementById("box3title"); const box3description = document.getElementById("box3description"); + + const box4title = document.getElementById("box4title"); + const box4description = document.getElementById("box4description"); + const translate = document.getElementById("translate"); if ( openClient && welcomeJank && @@ -20,7 +24,10 @@ const serverbox = document.getElementById("instancebox") as HTMLDivElement; box3title && box3description && box1title && - box1Items + box1Items && + box4title && + box4description && + translate ) { openClient.textContent = I18n.getTranslation("htmlPages.openClient"); welcomeJank.textContent = I18n.getTranslation("htmlPages.welcomeJank"); @@ -30,6 +37,10 @@ const serverbox = document.getElementById("instancebox") as HTMLDivElement; box3title.textContent = I18n.getTranslation("htmlPages.box3title"); box3description.textContent = I18n.getTranslation("htmlPages.box3description"); + box4title.textContent = I18n.htmlPages.transTitle(); + box4title.textContent = I18n.htmlPages.transDesc(); + box4title.textContent = I18n.htmlPages.trans(); + const items = I18n.getTranslation("htmlPages.box1Items").split("|"); let i = 0; //@ts-ignore ts is being dumb here diff --git a/translations/en.json b/translations/en.json index 1dfdd12..54f15a2 100644 --- a/translations/en.json +++ b/translations/en.json @@ -230,7 +230,10 @@ "box1Items": "Direct Messaging|Reactions support|Invites|Account switching|User settings|Developer portal|Bot invites|Translation support", "compatableInstances": "Spacebar-Compatible Instances:", "box3title": "Contribute to Jank Client", - "box3description": "We always appreciate some help, whether that be in the form of bug reports, or code, or even just pointing out some typos." + "box3description": "We always appreciate some help, whether that be in the form of bug reports, or code, or even just pointing out some typos.", + "trans": "Translate", + "transTitle": "Translate Jank Client", + "transDesc": "You can help translate Jank Client into your own language!" }, "form": { "captcha": "Wait, are you a human?"