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:
@@ -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;
}
