merging code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Nitesh Yadav
2026-04-20 14:26:25 +05:30
co-authored by Claude Sonnet 4.6
322 changed files with 28779 additions and 4976 deletions
+19 -10
View File
@@ -188,21 +188,30 @@ export class WebAppComponent implements OnInit, OnDestroy {
)
.subscribe((event) => {
if (!event['title']) {
this.i18nService.translate('APP_NAME').pipe(take(1)).subscribe((t: any) => this.titleService.setTitle(t));
this.i18nService
.translate('APP_NAME')
.pipe(take(1))
.subscribe((t: any) => this.titleService.setTitle(t));
return;
}
const raw = event['title'];
const textKey = `labels.text.${raw}`;
const menuKey = `labels.menus.${raw}`;
this.i18nService.translate(textKey).pipe(take(1)).subscribe((textResult: any) => {
if (textResult !== textKey) {
this.titleService.setTitle(textResult);
} else {
this.i18nService.translate(menuKey).pipe(take(1)).subscribe((menuResult: any) => {
this.titleService.setTitle(menuResult !== menuKey ? menuResult : raw);
});
}
});
this.i18nService
.translate(textKey)
.pipe(take(1))
.subscribe((textResult: any) => {
if (textResult !== textKey) {
this.titleService.setTitle(textResult);
} else {
this.i18nService
.translate(menuKey)
.pipe(take(1))
.subscribe((menuResult: any) => {
this.titleService.setTitle(menuResult !== menuKey ? menuResult : raw);
});
}
});
});
// Stores top 100 user activites as local storage object.