Implementation:0xranx OpenContext I18n Chinese
| 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
- Repository: 0xranx_OpenContext
- File: src/ui/src/i18n/locales/zh.json
- Lines: 1-469
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>
);
}