- Vào Releases
- Download file
.vsixmới nhất - VSCode: Extensions → Install from VSIX → Chọn file
- Extensions → Tìm "Game Text Translator"
- Install
-
Tạo file
test.txt:Hello world! Welcome to the game. -
Chọn text "Hello world!"
-
Chuột phải → "Translate Selection"
-
Xem popup → Apply
✅ Sử dụng Google Translate miễn phí
Settings → "game text translator" → "Translation Provider"
- openRouter: Khuyến nghị (nhiều models, giá rẻ)
- openAI: GPT chính thức
- googleCloud: Chất lượng cao
- Đăng ký openrouter.ai
- Copy API key
- VSCode Settings:
"Game Text Translator: OpenRouter Api Key"
- platform.openai.com
- API Keys → Create new
- VSCode:
"Game Text Translator: OpenAI Api Key"
- Chọn text dài hơn
- Dịch và so sánh chất lượng
Settings → "Game Text Translator: System Prompt"
Ví dụ cho RPG:
"You are a Vietnamese game translator. Translate RPG dialogue naturally while maintaining epic fantasy tone. Use appropriate gaming terminology."
Settings → "Game Text Translator: Vocabulary"
{
"Hero": "Anh Hùng",
"Mana": "Năng Lượng",
"Quest": "Nhiệm Vụ",
"Boss": "Trùm Cuối"
}
- Chọn text → Translate Selection
- Hoặc mở file → Translate File
{
"dialogue": "Hello adventurer!",
"items": ["Sword", "Shield"]
}→ Chỉ dịch values, giữ keys
Name,Description
Sword,A sharp blade
Shield,Protects you
→ Dịch cells, giữ headers
- Setup: OpenRouter + custom prompt cho thể loại game
- Vocabulary: Thêm thuật ngữ game đặc trưng
- Batch: Dịch toàn bộ thư mục text game
- Review: Kiểm tra translations
- Export: Sử dụng trong game
- Setup: Google Translate (nhanh, free)
- Files: strings.json, ui.csv
- Quick: Dịch từng file nhỏ
- Restart VSCode
- Check Developer Console (Help → Toggle Developer Tools)
- Verify key chưa expired
- Check quota/limits
- Test với free provider
- Check file encoding (UTF-8)
- Verify JSON/CSV format đúng
- Try smaller file trước
Bắt đầu: Google Translate (free) Nâng cao: OpenRouter + custom settings Pro: Từ điển + system prompts
Extension đã sẵn sàng sử dụng! 🎉