luci-base: cbi.js: collapse whitespace before language string hashing
authorJo-Philipp Wich <jo@mein.io>
Thu, 16 Jan 2020 17:10:04 +0000 (18:10 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 16 Jan 2020 17:17:09 +0000 (18:17 +0100)
commitaca2c4ba4e4c847e5ae86e5539537f213678a0f3
tree30830c696210ce9da49009d4274330c1e7b5eda7
parent3eeb9ef303742430f7358c1a0b57a61aa7c00fa9
luci-base: cbi.js: collapse whitespace before language string hashing

To mirror the behavior of the Lua runtime, we need to collapse whitepace
in translation source strings before doing the string table lookup.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/cbi.js