A localization-friendly CLI tool powered by LLMs for translating and refining .po files with glossary support.
- Translate
.pofiles using LLMs likeqwen2.5:14b, OpenAI-compatible models, or your local Ollama model
You can install directly from GitHub:
pip install git+https://github.com/hsiangjenli/po-llm.gitIf you're using OpenAI:
# zsh
echo 'export POLLM_OPENAI_API_KEY=your-api-key' >> ~/.zshrc
source ~/.zshrcIf you're using Ollama, no key is needed and http://localhost:11434/v1 will be used by default.
pollm translate example/bugs.po --model qwen2.5:14bpollm fuzzy example/bugs.po --model qwen2.5:14bSupported options:
--temperature: Model randomness (default:0.1)--max-messages: Max message history for context (default:4)--translate_mode:fullyoruntranslated