feat: Adding French language

This commit is contained in:
2026-07-05 03:07:44 +02:00
parent e590a58702
commit 3a6afc28ac
11 changed files with 696 additions and 171 deletions
+54
View File
@@ -1376,6 +1376,60 @@ export namespace main {
this.count = source["count"];
}
}
export class ContestBandRow {
band: string;
count: number;
static createFrom(source: any = {}) {
return new ContestBandRow(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.band = source["band"];
this.count = source["count"];
}
}
export class ContestStatsResult {
qsos: number;
by_band: ContestBandRow[];
mult: number;
mult_label: string;
score: number;
last_hour: number;
static createFrom(source: any = {}) {
return new ContestStatsResult(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.qsos = source["qsos"];
this.by_band = this.convertValues(source["by_band"], ContestBandRow);
this.mult = source["mult"];
this.mult_label = source["mult_label"];
this.score = source["score"];
this.last_hour = source["last_hour"];
}
convertValues(a: any, classs: any, asMap: boolean = false): any {
if (!a) {
return a;
}
if (a.slice && a.map) {
return (a as any[]).map(elem => this.convertValues(elem, classs));
} else if ("object" === typeof a) {
if (asMap) {
for (const key of Object.keys(a)) {
a[key] = new classs(a[key]);
}
return a;
}
return new classs(a);
}
return a;
}
}
export class CtyDatInfo {
path: string;
entities: number;