diff options
Diffstat (limited to 'src/components/Widget/RelatedTopics/RelatedTopics.tsx')
| -rw-r--r-- | src/components/Widget/RelatedTopics/RelatedTopics.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/Widget/RelatedTopics/RelatedTopics.tsx b/src/components/Widget/RelatedTopics/RelatedTopics.tsx index ad8f5ef..422c06f 100644 --- a/src/components/Widget/RelatedTopics/RelatedTopics.tsx +++ b/src/components/Widget/RelatedTopics/RelatedTopics.tsx @@ -20,7 +20,9 @@ const RelatedTopics = ({ topics }: { topics: SubjectPreview[] }) => { return ( <div> - <h2 className={styles.title}>{t`Related topics`}</h2> + <h2 className={styles.title}> + {topics.length > 1 ? t`Related topics` : t`Related topic`} + </h2> <ul className={styles.list}>{subjects}</ul> </div> ); |
