luci-app-commands: use client side translation in JavaScript blocks
authorJo-Philipp Wich <[email protected]>
Sat, 27 Jul 2024 23:06:25 +0000 (01:06 +0200)
committerJo-Philipp Wich <[email protected]>
Sat, 27 Jul 2024 23:08:01 +0000 (01:08 +0200)
commit385129bd51d7c88f71615ec0dc37039dbb1d2adf
tree7935c2b8a59555a1786e33d1d4dc73d4e833ea56
parent1021ecef108532b0d9af3409cf754b842e344b20
luci-app-commands: use client side translation in JavaScript blocks

Do not interpolate translated strings on the server side, use browser
side translation calls instead to avoid potential quote escaping issues.

Fixes: #7213
Fixes: 119fd22ebf ("luci-app-commands: replace i18n single quotes with double-quotes")
Signed-off-by: Jo-Philipp Wich <[email protected]>
applications/luci-app-commands/ucode/template/commands.ut