feat(portal): Translations and Languages pages
Ported from babyboo and trimmed to back-office labels: list with search and the Missing Chinese filter, edit panel with placeholder checks and an unsaved-changes guard, export, import with preview and summary, and the Languages page with guarded switches. A blank translation is no longer treated as an old placeholder mismatch, so Save blocks a broken new one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
This commit is contained in:
1 parent
27e0ec7bff
commit
a8bfcf5f6d
21 files changed
+1401
-6
No files matched your search
@@ -35,9 +35,9 @@ Verify commands:
|
||||
|
||||
## 5. Portal
|
||||
|
||||
- [ ] 5.1 Route handlers `app/api/locales/**` and `app/api/messages/**`, `routeModules`, sidebar System entries with icons. The language list reloads after sign-in.
|
||||
- [ ] 5.2 Languages page `/locales`: list, add, edit label and order, code read-only on edit, guarded switch with confirm, inline refusals.
|
||||
- [ ] 5.3 Translations page `/messages`:
|
||||
- [x] 5.1 Route handlers `app/api/locales/**` and `app/api/messages/**`, `routeModules`, sidebar System entries with icons. The language list reloads after sign-in.
|
||||
- [x] 5.2 Languages page `/locales`: list, add, edit label and order, code read-only on edit, guarded switch with confirm, inline refusals.
|
||||
- [x] 5.3 Translations page `/messages`:
|
||||
- list with code, English and Chinese;
|
||||
- search, the Missing Chinese filter and its badge;
|
||||
- the edit panel: placeholder checks, unsaved guard, code read-only;
|
||||
|
||||
Reference in new issue
Block a user