forked from MapComplete/MapComplete
Add some statistics on translations in script
This commit is contained in:
parent
796ee40f3b
commit
e22ce4d5b1
3 changed files with 135 additions and 73 deletions
8
Utils.ts
8
Utils.ts
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue