Greasy Fork is available in English.

Genius.com translate lyrics

Shows English or Russian translation next to the lyrics on genius.com. Powered by Yandex.Translate

< Feedback em Genius.com translate lyrics

Pergunta/comentário

§
Publicado: 02/01/2023
Editado: 02/01/2023

If you wish to do something translation, you can use Google's Translation API. No token required.


fetch(`https: //translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=${localeLang}&dj=1&dt=t&dt=rm&q=${q}`).then(res => {
    return res.json()
})
.then(result => {
    let resultText = result.sentences.map((function (s) {
        return "trans" in s ? s.trans : "";
})).join("")
    return resultText.split("\n");
})

Publicar resposta

Faça o login para publicar uma resposta.