fix(notifications): use language from translator for timestamps
The language in the config is used for the default fallback language. Using ngx-translate ensures that we always have the user preferred language.
Closes:
MODIFY
src/app/components/notifications/notifications.component.ts
src/app/components/notifications/notifications.component.ts
@@ -200,7 +200,7 @@ export class NotificationsComponent implements OnInit {
public convertTimestamp(timestamp: string): string {
return DateTime.fromISO(timestamp).toRelative({
- locale: this.configService.getLanguage()
+ locale: this.translator.currentLang
}) as string;
}

fix(notifications): use language from translator for timestamps

The language in the config is used for the default fallback language. Using ngx-translate ensures that we always have the user preferred language.

Closes: PAS-4357