i18n and UI fix
This commit is contained in:
84
.sisyphus/evidence/task-03-locale-structure.txt
Normal file
84
.sisyphus/evidence/task-03-locale-structure.txt
Normal file
@@ -0,0 +1,84 @@
|
||||
# Task 03: Locale File Structure - Evidence
|
||||
|
||||
## Status: ✅ COMPLETE (Pre-existing)
|
||||
|
||||
## Directory Structure Created
|
||||
```
|
||||
src/renderer/src/locales/
|
||||
├── default/
|
||||
│ ├── common.json (31 keys)
|
||||
│ ├── domain.json (31 keys)
|
||||
│ ├── settings.json (24 keys)
|
||||
│ └── errors.json (20 keys)
|
||||
├── zh-CN/
|
||||
│ ├── common.json (31 keys)
|
||||
│ ├── domain.json (31 keys)
|
||||
│ ├── settings.json (24 keys)
|
||||
│ └── errors.json (20 keys)
|
||||
├── ja-JP/
|
||||
│ ├── common.json (31 keys)
|
||||
│ ├── domain.json (31 keys)
|
||||
│ ├── settings.json (24 keys)
|
||||
│ └── errors.json (20 keys)
|
||||
└── en-US/
|
||||
├── common.json (31 keys)
|
||||
├── domain.json (31 keys)
|
||||
├── settings.json (24 keys)
|
||||
└── errors.json (20 keys)
|
||||
```
|
||||
|
||||
## Verification
|
||||
- [x] Directories created: default/, zh-CN/, ja-JP/, en-US/
|
||||
- [x] Files created: common.json, domain.json, settings.json, errors.json
|
||||
- [x] Each file has >5 translation keys (minimum 20 per file)
|
||||
- [x] Flat key structure used (no nested objects)
|
||||
|
||||
## Sample Content
|
||||
|
||||
### common.json (default)
|
||||
```json
|
||||
{
|
||||
"appName": "Kintone Manager",
|
||||
"save": "保存",
|
||||
"cancel": "取消",
|
||||
"delete": "删除",
|
||||
"edit": "编辑",
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
### domain.json (default)
|
||||
```json
|
||||
{
|
||||
"title": "域名管理",
|
||||
"addDomain": "添加域名",
|
||||
"editDomain": "编辑域名",
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
### settings.json (default)
|
||||
```json
|
||||
{
|
||||
"title": "设置",
|
||||
"language": "语言",
|
||||
"selectLanguage": "选择语言",
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
### errors.json (default)
|
||||
```json
|
||||
{
|
||||
"networkError": "网络错误",
|
||||
"invalidDomain": "无效的域名",
|
||||
"connectionFailed": "连接失败",
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
- Structure was already in place from prior work
|
||||
- All translations follow flat key structure
|
||||
- Chinese is the default/source language
|
||||
- English and Japanese translations provided
|
||||
Reference in New Issue
Block a user