# Real-Time Multilingual Translation & SaaS Localization — API Store Hub

> VI: Dịch giao diện i18n JSON, tài liệu kỹ thuật, phụ đề và hội thoại trực tiếp giữa Việt, Anh, Trung, Nhật, Hàn, Nga và châu Âu — giữ nguyên biến placeholder và bảng thuật ngữ.
> EN: Translate i18n JSON bundles, technical docs, subtitles, and live chat across 19+ languages while preserving placeholders, HTML tags, and brand glossaries.

- Industry: Game Localization, Global SaaS & Media
- Canonical VI: https://apistorehub.com/vi/giai-phap/dich-thuat-da-ngon-ngu-realtime
- Canonical EN: https://apistorehub.com/en/giai-phap/dich-thuat-da-ngon-ngu-realtime

## Reference Architecture
Translation pipelines lock template variables (`{count}`, `{{name}}`, HTML tags) and attach a static glossary in the system prompt for high cache hits, followed by automated placeholder parity validation.

## Recommended Model Stack (Live ST Pricing)
| Role | Model | Live ST Rate | Why |
|---|---|---|---|
| High-Volume UI Strings & Subtitles | `deepseek-v4-flash` | 1,500 ST / 1M tokens | Fast, ultra-low-cost localization for large string catalogs. |
| Marketing Copy & Technical Docs | `claude-sonnet-5-5` | 7,700 ST / 1M tokens | Idiomatic phrasing and faithful domain terminology. |
| CJK & Southeast Asian Languages | `gemini-4-neon` | 20,400 ST / 1M tokens | Strong accuracy across Vietnamese, Chinese, Japanese, Korean, Thai, and Indonesian. |

## Deployment Steps
1. Batch 20–40 related i18n keys per JSON request to amortize prompt instructions.
2. Pin your terminology glossary and placeholder preservation rules at the top of the system prompt.
3. Enforce `response_format: json_object` preserving exact source keys.
4. Run automated validation checking key parity and placeholder integrity before merging.

## Quickstart cURL
```bash
curl https://apistorehub.com/v1/chat/completions \
  -H "Authorization: Bearer sk-ash-your_key" \
  -H "Content-Type: application/json" \
  -d '{"model":"claude-sonnet-5-5","response_format":{"type":"json_object"},"messages":[{"role":"system","content":"Translate values to Japanese. Keep keys and {count} placeholders unchanged."},{"role":"user","content":"{\"models_live\":\"{count} AI models ready\"}"}]}'
```

## FAQ
- **How do I guarantee variables like `API Store Hub` are never translated?**: State the rule in the system prompt and verify placeholder regex parity in code before accepting the batch.
- **Does batching strings into JSON save ST spend?**: Yes. Batching 25–40 strings cuts repeated instruction overhead by up to 75%.
- **Can I preserve Latin digits for prices in Arabic or Hindi locales?**: Yes. Include an explicit ASCII digit rule in the glossary prompt.
