pi-en2th
Pi extension that translates assistant responses from English to Thai using a local Ollama model.
Package details
Install pi-en2th from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-en2th- Package
pi-en2th- Version
0.1.5- Published
- Jun 25, 2026
- Downloads
- not available
- Author
- jamiejamesdev
- License
- unknown
- Types
- extension
- Size
- 7.8 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./en2th.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-en2th
Pi extension that translates assistant responses from English to Thai using a local Ollama model.
This package is published publicly on npm.
Requirements
Default model:
ollama pull translategemma:latest
Install
From npm
pi install npm:pi-en2th
From git
pi install https://github.com/jamiejamesdev/pi-en2th.git
Usage
Enable it in pi, then use:
/en2th-toggle— enable or disable translation/en2th-model— choose the Ollama model/en2th-status— show current status
The extension appends Thai translation under each assistant text response.
Config
Environment variables:
OLLAMA_BASE_URL— defaults tohttp://localhost:11434EN2TH_TRANSLATE_MODEL— default model name
Config file:
~/.pi/agent/en2th-translate-config.json
Publish
The package is public, so this is only needed when releasing a new version.
npm publish --access public