1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Fixed notification translation.

This commit is contained in:
Ylian Saint-Hilaire 2021-01-11 11:56:21 -08:00
parent cb8fc7d150
commit 21e6b0320b
5 changed files with 1857 additions and 3 deletions

View file

@ -4856,7 +4856,7 @@
"SMS error: {0}"
];
if (typeof n.titleid == 'number') { try { n.title = translatedTitles[n.titleid]; } catch (ex) { } }
if (typeof n.msgid == 'number') { try { n.text = translatedMessages[n.msgid]; if (Array.isArray(n.args)) { format(n.text, ...n.args); } } catch (ex) { } }
if (typeof n.msgid == 'number') { try { n.text = translatedMessages[n.msgid]; if (Array.isArray(n.args)) { n.text = format(n.text, ...n.args); } } catch (ex) { } }
// Show notification within the web page.
if (n.time == null) { n.time = Date.now(); }