Skip to content

Commit

Permalink
trans for AddArtInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
eeeqeee committed Jan 22, 2024
1 parent 635a37d commit b6394a9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
20 changes: 13 additions & 7 deletions apps/frontend/src/app/Components/AddArtInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
import { Alert, Link } from '@mui/material'
import { Trans, useTranslation } from 'react-i18next'
import { Link as RouterLink } from 'react-router-dom'

export default function AddArtInfo() {
const { t } = useTranslation('artifact')
return (
<Alert severity="info" variant="filled">
Looks like you haven't added any artifacts yet. If you want, there are
<Link color="warning.main" component={RouterLink} to="/scanner">
automatic scanners
</Link>
that can speed up the import process!
</Alert>
<Trans t={t} i18nKey={"noArtifacts"}>
<Alert severity="info" variant="filled">
{
"Looks like you haven't added any artifacts yet. If you want, there are "
}
<Link color="warning.main" component={RouterLink} to="/scanner">
automatic scanners
</Link>
{' that can speed up the import process!'}
</Alert>
</Trans>
)
}
3 changes: 2 additions & 1 deletion libs/gi-localization/assets/locales/en/artifact.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,6 @@
"cantDeleteLock": "Cannot delete artifact because it is locked",
"equippedArt": "All Equipped Artifacts",
"artInInv": "All Unequipped Artifacts",
"locationsTooltip": "Disable \"All Equipped Artifacts\" to filter by specific characters"
"locationsTooltip": "Disable \"All Equipped Artifacts\" to filter by specific characters",
"noArtifacts": "Looks like you haven't added any artifacts yet. If you want, there are <1>automatic scanners</1> that can speed up the import process!"
}

0 comments on commit b6394a9

Please sign in to comment.