text: Title: Modify translation pipeline langdetect parameter to accept language detection function
  Body: *See [this comment](https://github.com/neuml/txtai/issues/423#issuecomment-1426777995) for details on what to implement for this issue*
  
  First and foremost, I've been getting errors while trying to install fasttext with a different package managers (pdm and poetry) and python versions (3.8-3.10). Looking at the issues in their repo, it seems that this is a [common issue](https://github.com/facebookresearch/fastText/issues/1298) for [many people](https://github.com/python-poetry/poetry/issues/6113).
  
  Someone created [a simple pull request](https://github.com/facebookresearch/fastText/pull/1292) 6 months ago to fix this and it has been ignored - as have hundreds of other Issues and PRs. The project just seems to be abandoned.
  
  But [Lingua](https://github.com/pemistahl/lingua-py) appears to be a new and very promising language detection tool. There is lots of Their benchmarks show increased accuracy, though they don't have any performance metrics for comparison. 
  
  At the very least, could the fasttext dependency be switch to [this repo ](https://github.com/cfculhane/fastText) (the 6 month old bugfix PR)? 