Add some statistics on translations in script

This commit is contained in:
Pieter Vander Vennet 2022-04-01 21:17:27 +02:00
parent 796ee40f3b
commit e22ce4d5b1
3 changed files with 135 additions and 73 deletions

View file

@ -183,6 +183,14 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
}
return str.substr(0, l - 3) + "...";
}
public static FixedLength(str: string, l: number) {
str = Utils.EllipsesAfter(str, l)
while(str.length < l){
str = " "+str
}
return str;
}
public static Dedup(arr: string[]): string[] {
if (arr === undefined) {