|
|
||
|---|---|---|
| .. | ||
| README.md | ||
| glossary_es.json | ||
| translate_site.py | ||
README.md
SciSiteForge Scripts
🛠️ Build & Translate
This site framework supports offline multilingual translation using Llamafile.
Prerequisites
- Download a multilingual GGUF model (e.g.,
mistral-7b-instruct.Q5_K_M.gguf) - Install Llamafile
- Python 3 with
requestsandbeautifulsoup4
Steps
- Launch Llamafile:
./mistral-7b-instruct.Q5_K_M.llamafile --port 8080 - Run translation:
python scripts/translate_site.py --langs es,fr - Commit translated content:
git add es/ fr/
Translated files are saved to
/es/,/fr/, etc., and served alongside English content.
#### 📁 `example/content/scripts/glossary_es.json`
→ Language-specific scientific term mappings