Skip to content

Commit

Permalink
태그 번역 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
MU-Software committed Sep 23, 2024
1 parent 2a95c84 commit 143c6b9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions src/locale/English/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,18 @@ const EnglishTranslation = {
"영어": "English",
"한국어": "Korean",
"일본어": "Japanese",
"교육": "Education",
"데이터 과학": "Data Science",
"라이브러리 / 코어": "Library / Core",
"보안": "Security",
"블록체인": "Blockchain",
"실무": "Work",
"오픈소스 / 커뮤니티": "Open Source / Community",
"웹 서비스": "Web Service",
"인공지능": "Artificial Intelligence",
"일상 / 사회": "Daily life / Society",
"자동화": "Automation",
"컴퓨터 비전": "Computer Vision",
}

export default EnglishTranslation
2 changes: 1 addition & 1 deletion src/pages/Session/detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const SessionDetail: React.FC<{ session: APIPretalxSessions[0] }> = ({ session }
<p>
<TagContainer>
<div style={{ margin: 0 }}>{t('태그')} :</div>
{session.tags.map(tag => <Tag key={tag}>{tag}</Tag>)}
{session.tags.map(tag => <Tag key={tag}>{t(tag)}</Tag>)}
{session.do_not_record && <Tag>{t('녹화 불가')}</Tag>}
</TagContainer>
</p>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Session/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const SessionItem: React.FC<{ session: APIPretalxSessions[0] }> = ({ session })
<p>{session.abstract}</p>
<SessionSpeakerContainer>by {session.speakers.map((speaker) => <kbd key={speaker.code}>{speaker.name}</kbd>)}</SessionSpeakerContainer>
<TagContainer>
{session.tags.map(tag => <Tag key={tag}>{tag}</Tag>)}
{session.tags.map(tag => <Tag key={tag}>{t(tag)}</Tag>)}
{session.do_not_record && <Tag>{t('녹화 불가')}</Tag>}
</TagContainer>
</SessionItemInfoContainer>
Expand Down Expand Up @@ -58,7 +58,7 @@ export const SessionListPage = () => {
<TagFilterBtnContainer>
<div>
{tags.map((tag) => <TagFilterBtn key={tag} onClick={() => setOrUnsetTag(tag)} className={tag === currentTag ? 'selected' : ''}>
{tag}
{t(tag)}
</TagFilterBtn>)}
</div>
</TagFilterBtnContainer>
Expand Down

0 comments on commit 143c6b9

Please sign in to comment.