Discourse Translator

Are there instructions somewhere for implementing a local Gemini or Ollama model connected to Discourse?

Also, many of our users do not want to use AI translation for privacy reasons.