https://github.com/szsascha/ollama-translate
Translate languages locally using ollama
https://github.com/szsascha/ollama-translate
cli llm ollama rest-api translation
Last synced: 2 months ago
JSON representation
Translate languages locally using ollama
- Host: GitHub
- URL: https://github.com/szsascha/ollama-translate
- Owner: szsascha
- Created: 2025-04-10T20:44:39.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-04-10T22:16:46.000Z (2 months ago)
- Last Synced: 2025-04-10T23:20:18.053Z (2 months ago)
- Topics: cli, llm, ollama, rest-api, translation
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ollama Translate
Use Ollama to translate languages locally. Created for translations in projects with data that is covered by data protection regulations. It can also be used for highly confidential data. There is no call to an external service. All data is processed locally on your own system.
## Features
- Translates text between several languages
- Uses the [aya-expanse](https://ollama.com/library/aya-expanse:8b) model (Consider using the 32b model for better results)
- Outputs the translated text as markdown## Requirements
- Ollama
- Hardware with enough power to run 8b models (see Ollama specifications)## Setup
1. Clone this repo
2. Create the model you want (e.g. for english to german translation: `ollama create en_de -f ./en_de.Modelfile`)
3. Optional: Run the ollama service: `ollama serve`## Usage
### CLI
`ollama run en_de "Why is the sky blue?"`
### REST
```
POST http://localhost:11434/api/generate{
"model": "en_de",
"prompt":"Why is the sky blue?",
"stream": false
}
```