User-facing text in code and block definitions cannot be localized
What Four kinds of user-visible text never reach the translation files, so they stay English while the surrounding UI is translated. Permission names and descriptions — hard-coded in frontend/src/com…
What
Four kinds of user-visible text never reach the translation files, so they stay English while the surrounding UI is translated.
1. Permission names and descriptions — hard-coded in frontend/src/components/GroupEditOverlay.vue (permissionCards from ~line 900, rules from ~line 1034). The section headings above them are already keys, so the screen shows translated headings with English descriptions. ~40 strings.
- Storage target actions —
backend/modules/storage/git/definition.yml, theactions:block from line 142.label,hintandwarnare plain strings. 8 strings.
3. File manager context menu — frontend/src/components/FileManager.vue lines 711, 725, 739, 748, 754 (Duplicate..., Rename / Move Page..., Rename / Move To..., Rename..., Move To...). The Delete entry beside them uses common.actions.delete, so one menu mixes two languages. Similar labels are hard-coded in PageActionsCol.vue.
- Content blocks — every block's
name,descriptionand each field'slabel/hintare inblocks/block-*/component.jsunderstatic definition: 28 blocks, roughly 280 strings. The comment there notes the values must be plain literals because the build collects them intocompiled/blocks.manifest.json. The Blocks admin page is fully translated around them, which makes the gap easy to see.
Why it matters
These are not edge cases. Permissions and the file manager are the screens an administrator uses to grant access and move content, and the storage actions include destructive ones (Import Everything, Purge Local Repository) whose warnings are read at the moment a mistake is expensive.
Suggestion
- Move the permission and file-manager strings into
backend/locales/en.jsonand render them witht(), as the neighbouring keys already are. - Allow a
labelKeyin storage moduledefinition.ymlentries. - For blocks, either emit keys in the manifest or keep a
nameKeybeside the literal so the build still works.
Environment
Wiki.js 3.2.0, zh-CN locale.