Skip to content

Commit

Permalink
chore: title language keys put into object
Browse files Browse the repository at this point in the history
  • Loading branch information
berenteb committed Mar 15, 2024
1 parent b4946d5 commit 7cb0257
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 49 deletions.
4 changes: 2 additions & 2 deletions components/map/resource-sheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ export function ResourceSheet({ resource, onClose, className, ...props }: Resour
{...props}
>
<StyledText className='text-2xl pr-10' numberOfLines={1}>
{i18n.language == 'en' && savedResource?.enTitle !== undefined ? savedResource?.enTitle : savedResource?.title}
{i18n.language === 'en' && savedResource?.title.en ? savedResource?.title.en : savedResource?.title.hu}
{DISPLAY_ID && ` (${savedResource?.id})`}
</StyledText>
<SheetCloseButton onPress={onClose} />
<StyledText className='text-slate-500 text-lg'>
{i18n.language == 'en' ? savedResource?.description.en : savedResource?.description.hu}
{i18n.language == 'en' ? savedResource?.description.en : savedResource?.description.hu}
</StyledText>
</Animated.View>
);
Expand Down
Loading

0 comments on commit 7cb0257

Please sign in to comment.