lingq.com is a pretty good way to learn a second language this way. I use it by uploading an ebook in my target language. The app keeps track of the words I've learned, and highlights the words and phrases I'm still learning or haven't encountered. I can click on the word/phrase as I'm reading to see a definition or translation in the sidebar, and then mark the level at which I've learned it just like in Anki.
It's pretty slow going at the start, and the texts you have to use are very basic, but pretty quickly I was reading entire YA novels with only a handful of unknown words on each page.
[1]https://www.sk.com.br/sk-krash-english.html [2]https://www.youtube.com/watch?v=fnUc_W3xE1w