]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
fix #4551: ui: translate byte unit in `format_size`
authorNoel Ullreich <n.ullreich@proxmox.com>
Thu, 6 Apr 2023 11:38:06 +0000 (13:38 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 1 Jun 2023 14:10:34 +0000 (16:10 +0200)
commit01e64778ad112504d1de155c442571f54da46a45
tree713d61bbe1c7a6979ee4442745c5321aff92fc34
parent9dba61e6748fb590add10ce3ae2d8335d439f057
fix #4551: ui: translate byte unit in `format_size`

Some languages translate byte units like 'GiB' or write them in their
own script.

By `gettext`ing the units in the `format_size` function, we can
translate the units for (almost) all of the web interface.

Signed-off-by: Noel Ullreich <n.ullreich@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/Utils.js