Skip to content

Commit

Permalink
fix: don't embed author name in translation
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldElysium committed Sep 25, 2023
1 parent aafacbc commit db57590
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions public/locales/en/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"end": "You have reached the end!"
},
"submission": {
"author": "From: {{author}}",
"author": "From: ",
"invalid-media": "Invalid media"
}
}
}
4 changes: 2 additions & 2 deletions public/locales/jp/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"end": "終わりました"
},
"submission": {
"author": "著者:{{author}}",
"author": "著者:",
"invalid-media": "不正なメディア"
}
}
}
3 changes: 2 additions & 1 deletion src/ui/project/Submission.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export default async function Submission({ submission, index, lang }: IProps) {
)}
{submission.author && (
<div className="text-lg mt-3 ml-4">
{t('author', { author: submission.author })}
{t('author')}
{submission.author}
</div>
)}
<div className="flex-grow" />
Expand Down

1 comment on commit db57590

@vercel
Copy link

@vercel vercel bot commented on db57590 Sep 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.