Internationalize missed "local source" occurences

This commit is contained in:
schroda
2024-09-29 15:19:06 +02:00
parent ff9f6b6207
commit da1a9d9e31
3 changed files with 92 additions and 78 deletions

View File

@@ -119,6 +119,11 @@ function getSourceName(source?: Pick<SourceType, 'id' | 'displayName'> | null):
return translate('global.label.unknown');
}
const isLocalSource = Number(source.id) === 0;
if (isLocalSource) {
return translate('source.local_source.title');
}
return source.displayName ?? source.id;
}