Implementation:AIScientists Dev WorldSeed i18n locales
| Knowledge Sources | |
|---|---|
| Domains | Frontend, i18n |
| Last Updated | 2026-10-26 18:00 GMT |
Overview
Concrete i18n translation files for seven languages (de, en, es, fr, ja, ko, zh) used by the i18next integration, provided by the WorldSeed frontend.
= Description
The locale files in `frontend/src/locales/{lang}/common.json` contain translation key-value pairs for the WorldSeed UI. Each file follows the same structure with keys organized by feature area: `intro` (fields, properties), `gm` (whisper, resolve, feedback), `map` (zone, agent labels), `stream` (filters, view modes), `settings` (model select, narrator), and `common` (shared UI strings). The English (`en`) and Chinese (`zh`) files are the most complete (338 lines); other languages have 316 lines each. These are consumed by `i18next` initialized in `i18n.ts`.
Usage
These files are loaded automatically by i18next via the i18next config. No direct import is needed — components use `useTranslation()` from `react-i18next`.
Code Reference
Source Location
- Repository: WorldSeed
- Files:
- frontend/src/locales/de/common.json (316 lines)
- frontend/src/locales/en/common.json (338 lines)
- frontend/src/locales/es/common.json (316 lines)
- frontend/src/locales/fr/common.json (316 lines)
- frontend/src/locales/ja/common.json (316 lines)
- frontend/src/locales/ko/common.json (316 lines)
- frontend/src/locales/zh/common.json (338 lines)
Import
// Loaded by i18next config, not directly imported
// import i18n from '@/i18n' // initializes with all locales
I/O Contract
| Name | Type | Description |
|---|---|---|
| common.json | Record<string, string> │ Flat key-value translation map per language |