minor: i18n component writing - #1050

This commit is contained in:
Jean-Baptiste Pasquier
2021-03-30 21:10:05 +02:00
parent 60b9e54294
commit 4860b20e20
2 changed files with 66 additions and 67 deletions

View File

@ -175,6 +175,13 @@ html(lang="en")
if component.type == "notification"
include views/partials/notifications.pug
if component.type == "lang"
hubl-lang(
hidden
lang=component.parameters.name
file=component.parameters.file
)
if componentSet.has('profileDirectory')
.scrollbar-content(
id=`${getRoute("profileDirectory", true)}-profile`
@ -220,13 +227,6 @@ html(lang="en")
hidden
lang=client.i18n.lang?client.i18n.lang:"fr"
)&attributes({"force": client.i18n.force})
if client.i18n.files
for clientI18n in client.i18n.files
hubl-lang(
hidden
lang=clientI18n.name
file=clientI18n.file
)
div(
id="swal-content-text"