Skip to content

Commit 04bcad0

Browse files
committed
chore: update libui translations impl
1 parent a43f0b3 commit 04bcad0

5 files changed

Lines changed: 2356 additions & 1833 deletions

File tree

apps/web/src/features/datahub/components/SubjectLayout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export const SubjectLayout = () => {
2828
en: 'Instrument Records for Subject {}',
2929
fr: "Dossiers d'instruments pour le client {}"
3030
},
31-
removeSubjectIdScope(subjectId).slice(0, subjectIdDisplaySetting ?? 9)
31+
{
32+
args: [removeSubjectIdScope(subjectId).slice(0, subjectIdDisplaySetting ?? 9)]
33+
}
3234
)}
3335
</Heading>
3436
</PageHeader>

apps/web/src/features/datahub/pages/SubjectGraphPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ export const SubjectGraphPage = () => {
6060
const formType = instrument.details.title;
6161
const subjectId = params.subjectId!.slice(0, 7);
6262

63-
graphDesc.innerText = t('datahub.downloadInfo.subjectText', formType ?? '', subjectId ?? '');
63+
graphDesc.innerText = t('datahub.downloadInfo.subjectText', {
64+
args: [formType ?? '', subjectId ?? '']
65+
});
6466

6567
graphDesc.className = 'p-2 font-semibold text-center';
6668
element.prepend(graphDesc);

0 commit comments

Comments
 (0)