mirror of
https://github.com/SuperClaude-Org/SuperClaude_Framework.git
synced 2025-12-29 16:16:08 +00:00
feat: replace cloud translation with local Neural CLI
## Changes ### Removed (OpenAI-dependent) - ❌ `.github/workflows/translation-sync.yml` - GPT-Translate workflow - ❌ `docs/Development/translation-workflow.md` - OpenAI setup docs ### Added (Local Ollama-based) - ✅ `Makefile`: New `make translate` target using Neural CLI - ✅ `docs/Development/translation-guide.md` - Neural CLI guide ## Benefits **Before (GPT-Translate)**: - 💰 Monthly cost: ~¥90 (OpenAI API) - 🔑 Requires API key setup - 🌐 Data sent to external API - ⏱️ Network latency **After (Neural CLI)**: - ✅ **$0 cost** - Fully local execution - ✅ **No API keys** - Zero setup friction - ✅ **Privacy** - No external data transfer - ✅ **Fast** - ~1-2 min per README - ✅ **Offline capable** - Works without internet ## Technical Details **Neural CLI**: - Built in Rust with Tauri - Uses Ollama + qwen2.5:3b model - Binary size: 4.0MB - Auto-installs to ~/.local/bin/ **Usage**: ```bash make translate # Translates README.md → README-zh.md, README-ja.md ``` ## Requirements - Ollama installed: `curl -fsSL https://ollama.com/install.sh | sh` - Model downloaded: `ollama pull qwen2.5:3b` - Neural CLI built: `cd ~/github/neural/src-tauri && cargo build --bin neural-cli --release` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
22
Makefile
22
Makefile
@@ -1,4 +1,4 @@
|
||||
.PHONY: install dev test clean lint format uninstall update help
|
||||
.PHONY: install dev test clean lint format uninstall update translate help
|
||||
|
||||
# Full installation (dependencies + SuperClaude components)
|
||||
install:
|
||||
@@ -46,6 +46,25 @@ update:
|
||||
@echo "Updating SuperClaude components..."
|
||||
uv run superclaude update
|
||||
|
||||
# Translate README to multiple languages using Neural CLI
|
||||
translate:
|
||||
@echo "🌐 Translating README using Neural CLI (Ollama + qwen2.5:3b)..."
|
||||
@if [ ! -f ~/.local/bin/neural-cli ]; then \
|
||||
echo "📦 Installing neural-cli..."; \
|
||||
mkdir -p ~/.local/bin; \
|
||||
ln -sf ~/github/neural/src-tauri/target/release/neural-cli ~/.local/bin/neural-cli; \
|
||||
echo "✅ neural-cli installed to ~/.local/bin/"; \
|
||||
fi
|
||||
@echo ""
|
||||
@echo "🇨🇳 Translating to Simplified Chinese..."
|
||||
@~/.local/bin/neural-cli translate README.md --from English --to "Simplified Chinese" --output README-zh.md
|
||||
@echo ""
|
||||
@echo "🇯🇵 Translating to Japanese..."
|
||||
@~/.local/bin/neural-cli translate README.md --from English --to Japanese --output README-ja.md
|
||||
@echo ""
|
||||
@echo "✅ Translation complete!"
|
||||
@echo "📝 Files updated: README-zh.md, README-ja.md"
|
||||
|
||||
# Show help
|
||||
help:
|
||||
@echo "SuperClaude Framework - Available commands:"
|
||||
@@ -58,4 +77,5 @@ help:
|
||||
@echo " make clean - Clean build artifacts"
|
||||
@echo " make uninstall - Uninstall SuperClaude components"
|
||||
@echo " make update - Update SuperClaude components"
|
||||
@echo " make translate - Translate README to Chinese and Japanese (requires Ollama)"
|
||||
@echo " make help - Show this help message"
|
||||
|
||||
Reference in New Issue
Block a user