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 on Genius.com translate lyrics

Question/comment

§
Posted: 2.1.2023
Edited: 2.1.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");
})

Post reply

Sign in to post a reply.