refactoring: Fix generateLayouts

This commit is contained in:
Pieter Vander Vennet 2023-04-13 23:40:28 +02:00
parent 5117bccb9a
commit 7f26e4cb3b
5 changed files with 67 additions and 161 deletions

View file

@ -217,7 +217,7 @@ export class Translation extends BaseUIElement {
continue
}
let txt = this.translations[lng]
txt = txt.replace(/\..*/, "")
txt = txt.replace(/[.<].*/, "")
txt = Utils.EllipsesAfter(txt, 255)
tr[lng] = txt
}