wu-sheng opened a new pull request, #36:
URL: https://github.com/apache/skywalking-horizon-ui/pull/36

   ## What
   
   Internationalize the **3D Infrastructure Map config** admin page 
(`/admin/3d-map`) — the only admin page still rendering hardcoded English in 
every locale. It was added after the 0.6.0 eight-locale i18n pass, so it never 
got wired through `vue-i18n`.
   
   ## Changes
   
   - **`Infra3dAdminView.vue`** — wired `useI18n`; replaced every user-facing 
string: **58 `t()` keys** (headings, labels, buttons, placeholders, 
`title`/`aria` attributes, empty-states) and **5 `<i18n-t>` blocks** for the 
prose hints that embed `<code>`/`<strong>` (so `/3d/map`, the bold "Check diff 
& push", the OAP/unpinned counts, and the failover-tier name interpolate as 
single translation units). Named-arg interpolation for the dynamic counts 
(`{count} layers`), the via tag (`falls to {via}`), and the `Pushing… / Push to 
OAP` button state. Renamed the `t` `v-for`/script vars that would otherwise 
shadow the translate function.
   - **Verbatim by policy** — layer keys, MQE/metric ids, the `.*` regex, and 
id / proper-noun example placeholders stay untranslated.
   - **`en.json`** — 55 new source keys (8 reused existing).
   - **`de` / `es` / `fr` / `ja` / `ko` / `pt` / `zh-CN`** — the 55 keys 
translated, matching each catalog's existing terminology; `{placeholders}` and 
verbatim terms preserved.
   - **`CHANGELOG.md`** — added the page to the 0.6.0 admin-page i18n coverage 
list.
   
   ## Validation
   
   - `vue-tsc` type-check clean; production build clean.
   - All 58 keys + 5 `<i18n-t>` keypaths resolve in `en.json`.
   - Per-locale merge verified: 0 missing, 0 placeholder mismatches, 0 
HTML-entity corruption, valid JSON (1271 keys each).
   - English output is byte-identical to before — the page now renders in all 
eight languages instead of always-English.
   
   A few feature-name / tag terms ("filtered out", and "3D Infrastructure Map" 
in es/pt) were left in English by the translators — coherent per-locale choices 
that native speakers can refine, per the project's AI-seed translation policy.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to