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:0xranx OpenContext I18n Chinese

From Leeroopedia
Knowledge Sources
Domains i18n, Localization
Last Updated 2026-10-24 00:00 GMT

Overview

Chinese (Simplified) translation file for the desktop UI, providing i18n strings mirroring the English locale for all UI components.

Description

The zh.json file in src/ui/src/i18n/locales/ contains all Simplified Chinese translation keys for the desktop application, mirroring the structure of en.json. Covers editor, settings, agent chat, search, ideas, slash menu, tables, toolbars, and common UI strings. Used by react-i18next with the useTranslation hook.

Usage

Loaded by src/ui/src/i18n/index.js as the zh resource for i18next.

Code Reference

Source Location

Import

// Loaded in src/ui/src/i18n/index.js:
import zh from './locales/zh.json';
i18n.init({ resources: { zh: { translation: zh } } });

I/O Contract

Outputs

Name Type Description
translations JSON Key-value pairs in Simplified Chinese

Usage Examples

Language Switching

import { useTranslation } from 'react-i18next';

function LanguageSwitcher() {
  const { i18n } = useTranslation();
  return (
    <button onClick={() => i18n.changeLanguage('zh')}>
      中文
    </button>
  );
}

Related Pages

Page Connections

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