Skip to content

Commit

Permalink
move annoted objects i18n to file
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey800 committed Nov 2, 2023
1 parent c3cea4c commit 2315081
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Paper from '@mui/material/Paper'
import { ReactNode } from 'react'

import { ANNOTATED_OBJECTS_MAX } from 'app/constants/pagination'
import { i18n } from 'app/i18n'
import { cns } from 'app/utils/cns'

function List({
Expand Down Expand Up @@ -65,7 +66,7 @@ export function AnnotatedObjectsList({
'rounded-sds-m py-sds-xxxs px-sds-xxs inline',
)}
>
{nodes.length + 1 - ANNOTATED_OBJECTS_MAX} More Objects
{i18n.nMoreObjects(nodes.length + 1 - ANNOTATED_OBJECTS_MAX)}
</div>
</Tooltip>
</li>
Expand Down
1 change: 1 addition & 0 deletions frontend/packages/data-portal/app/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const i18n = {
microscopeModel: 'Microscope model',
moderate: 'Moderate',
napariPlugin: 'napari Plugin',
nMoreObjects: (count: number) => `${count} More Objects`,
notSubmitted: 'Not Submitted',
organism: 'Organism',
organismName: 'Organism Name',
Expand Down

0 comments on commit 2315081

Please sign in to comment.