Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:AIScientists Dev WorldSeed i18n locales

From Leeroopedia
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

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment