so I am making a translator and need help translating text
local translate = {}
local URL = "https://pirate.monkeyness.com/api/translate?english= "
local code = "%%20 "
local HttpService = game:GetService("HttpService")
function translate.Translate(text:string)
local encoded = string.gsub(text,"",code):gsub(" ","")
local response = HttpService:GetAsync(URL..encoded)
return HttpService:JSONDecode(response)
end
return translate
local translate = {}
local URL = "https://pirate.monkeyness.com/api/translate?english=%20"
local code = "%%20 "
local HttpService = game:GetService("HttpService")
function translate.Translate(text:string)
local encoded = string.gsub(text," ",code):gsub(" ","")
local response = HttpService:GetAsync(URL..encoded)
return response
end
return translate