Skip to content

Commit e508476

Browse files
authored
Bulk translation (#2352)
* fix: translation keys * fix project translation
1 parent 8701a01 commit e508476

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/src/modules/project-detail/project-detail.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,15 @@ const ProjectDetail = ({ data: inData, isModal, setVisible }) => {
5353
const translated = await translationService.getTranslatedResources(
5454
[detailData],
5555
router.locale,
56-
['title', 'summary']
56+
['title', 'summary', 'background', 'purpose']
5757
)
5858

5959
detailData = {
6060
...detailData,
6161
title: translated[0].title,
6262
summary: translated[0].summary || detailData.summary,
63+
background: translated[0].background || detailData.background,
64+
purpose: translated[0].purpose || detailData.purpose,
6365
}
6466
} catch (error) {
6567
console.error('Translation error:', error)

0 commit comments

Comments
 (0)