From 1ed1fd7eca23b50faab2b498454227ee918f0629 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 18 Jul 2024 18:29:57 -0400 Subject: [PATCH] Use newest commit for translateplus --- src/equicordplugins/translatePlus/utils/translator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/equicordplugins/translatePlus/utils/translator.ts b/src/equicordplugins/translatePlus/utils/translator.ts index 4598909e..a5ea6a34 100644 --- a/src/equicordplugins/translatePlus/utils/translator.ts +++ b/src/equicordplugins/translatePlus/utils/translator.ts @@ -25,7 +25,7 @@ function isShavian(text: string) { } async function translateShavian(message: string) { - const dictionary = await (await fetch("https://forkprince.github.io/TranslatePlus/shavian.json")).json(); + const dictionary = await (await fetch("https://github.com/ForkPrince/TranslatePlus/raw/322199d5fdb1a9506591c9f4a2826338b5d67e38/shavian.json")).json(); const punctuationMap = { '"': "\"", @@ -72,7 +72,7 @@ async function translateShavian(message: string) { async function translateSitelen(message: string) { message = Array.from(message).join(" "); - const dictionary = await (await fetch("https://forkprince.github.io/TranslatePlus/sitelen-pona.json")).json(); + const dictionary = await (await fetch("https://github.com/ForkPrince/TranslatePlus/raw/5ca152b134ea11433971f21b2ef8d556d4306717/sitelen-pona.json")).json(); const sorted = Object.keys(dictionary).sort((a, b) => b.length - a.length);