mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-01 08:26:03 +00:00
fix(i18n): chart series and the preset announcement in the page's language
The VM and host charts named their series in English (Usage, Usage (RSS), Read, Write, Inbound, Outbound) and the new-VM form announced an applied preset as "...new N GiB disk" in English on Turkish and Chinese pages. The texts now come from the templates: the stats tab and host overview give the series names (disk and NIC series reuse In, Out, Read, Write of the readings line), and each preset button carries its own announcement. "Usage" has the context "chart": zh translated it for secrets as "used by". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
parent
03dcb14e45
commit
f6c7f8c85e
12 changed files with 41 additions and 13 deletions
|
|
@ -52,8 +52,7 @@ function apply_preset(button) {
|
|||
clear_presets();
|
||||
button.setAttribute("aria-pressed", "true");
|
||||
button.classList.replace("text-body", "btn-primary");
|
||||
document.querySelector("#preset-status").textContent =
|
||||
`${button.dataset.label}: ${button.dataset.vcpu} vCPU, ${button.dataset.memory} MiB, new ${button.dataset.disk} GiB disk`;
|
||||
document.querySelector("#preset-status").textContent = button.dataset.status;
|
||||
}
|
||||
|
||||
function clear_presets() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue