diff client.js @ 56:010b905a74d4

Update translation strings - prepend i18n loading for all "templates" - add some strings - commit the po files to the repo
author mathieui
date Sun, 24 May 2020 11:27:10 +0200
parents 8b69b3a1ef8e
children 427807059ca8
line wrap: on
line diff
--- a/client.js
+++ b/client.js
@@ -122,7 +122,7 @@ document.addEventListener('DOMContentLoa
     {
         const new_node = document.createElementNS('http://www.w3.org/1999/xhtml', 'span');
         const parent_node = connect.parentNode;
-        const text = document.createTextNode('Logged in as ' + connection.authzid + ' ');
+        const text = document.createTextNode('{% trans 'Logged in as {} ' %}'.replace('{}', connection.authzid));
         new_node.appendChild(text);
         parent_node.insertBefore(new_node, connect);