Skip to content

Commit

Permalink
fix(translate): remove api prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw authored Aug 17, 2024
1 parent 59bbe0e commit b042bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lc-hax/Scripts/Helpers/Translate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ static IEnumerator FetchTranslateResult(string sourceLanguage, string targetLang
if (Helper.LocalPlayer is not PlayerControllerB player) yield break;

using UnityWebRequest www = UnityWebRequest.Get(
$"https://winstxnhdw-nllb-api.hf.space/api/v3/translate?text={text}&source={sourceLanguage}&target={targetLanguage}"
$"https://winstxnhdw-nllb-api.hf.space/v3/translate?text={text}&source={sourceLanguage}&target={targetLanguage}"
);

yield return www.SendWebRequest();
Expand Down

0 comments on commit b042bde

Please sign in to comment.