Skip to content

Commit

Permalink
i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
langonginc committed Aug 18, 2024
1 parent 6d901d7 commit 5c0a38d
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/marketplace/ticket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export default function Ticket() {
{
type: 'custom',
label: '',
component: <Button onClick={() => setMetadata({ ...metadata, id: -1 })}>As a new work</Button>,
component: <Button onClick={() => setMetadata({ ...metadata, id: -1 })}>{t('ticket.new')}</Button>,
hidden: metadata.id === -1,
},
{
Expand All @@ -132,7 +132,7 @@ export default function Ticket() {
setOpenGallery(true);
}}
>
Replace a existing work
{t('ticket.replace')}
</Button>
),
hidden: metadata.id !== -1,
Expand All @@ -142,10 +142,10 @@ export default function Ticket() {
return (
<RmgPage sx={pageStyles}>
<Flex>
<Heading size="lg">{metadata.id === -1 ? 'Uploading to gallery' : 'Updating your work'}</Heading>
<Heading size="md">{t('basic information')}</Heading>
<Heading size="lg">{t('ticket.title')}</Heading>
<Heading size="md">{t('ticket.infoSection')}</Heading>
<div dangerouslySetInnerHTML={{ __html: metadata.svgString }} />
<Button onClick={handleBack}>Change designer work</Button>
<Button onClick={handleBack}>{t('ticket.change')}</Button>
<RmgLabel label={t('ticket.cityName')}>
<MultiLangEntryCard
inputType="input"
Expand Down Expand Up @@ -186,7 +186,7 @@ export default function Ticket() {
}}
/>
</RmgLabel>
<Heading size="md">{t('new or replace')}</Heading>
<Heading size="md">{t('ticket.operationSection')}</Heading>
<RmgFields fields={field} />
</Flex>

Expand Down
19 changes: 19 additions & 0 deletions src/i18n/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,24 @@
"type": "Type",
"label": "Label"
}
},
"ticket": {
"title": "Uploading to gallery",
"infoSection": "Basic information",
"operationSection": "New or replacement",
"cityName": "Work name (English required)",
"description": "Description (Optional, English required)",
"change": "Change work in designer",
"replace": "Replace a existing work",
"new": "As a new work",
"back": "Back",
"submit": "Submit",
"submitTemplate": "Submit work"
},
"multiLangEntry": {
"lang": "Language",
"name": "Name",
"add": "Add a name in another language",
"remove": "Remove this name"
}
}
19 changes: 19 additions & 0 deletions src/i18n/translations/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,24 @@
"type": "タイプ",
"label": "ラベル"
}
},
"ticket": {
"title": "ギャラリーにアップロード",
"infoSection": "基本情報",
"operationSection": "新規または置換",
"cityName": "作品名(英語が必要)",
"description": "説明(任意、英語が必要)",
"change": "デザイナーで作品を変更",
"replace": "既存の作品を置換",
"new": "新しい作品として",
"back": "戻る",
"submit": "送信",
"submitTemplate": "作品を送信"
},
"multiLangEntry": {
"lang": "言語",
"name": "名前",
"add": "他の言語で名前を追加",
"remove": "この名前を削除"
}
}
19 changes: 19 additions & 0 deletions src/i18n/translations/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,24 @@
"type": "유형",
"label": "라벨"
}
},
"ticket": {
"title": "갤러리에 업로드",
"infoSection": "기본 정보",
"operationSection": "새로 만들기 또는 교체",
"cityName": "작품 이름(영어 필수)",
"description": "설명(선택 사항, 영어 필수)",
"change": "디자이너에서 작품 변경",
"replace": "기존 작품 교체",
"new": "새로운 작품으로",
"back": "뒤로",
"submit": "제출",
"submitTemplate": "작품 제출"
},
"multiLangEntry": {
"lang": "언어",
"name": "이름",
"add": "다른 언어로 이름 추가",
"remove": "이 이름 제거"
}
}
19 changes: 19 additions & 0 deletions src/i18n/translations/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,24 @@
"type": "类型",
"label": "标签"
}
},
"ticket": {
"title": "上传至画廊",
"infoSection": "基本信息",
"operationSection": "新建或替换",
"cityName": "作品名称(需要英文)",
"description": "描述(可选,需英文)",
"change": "在设计器中更改作品",
"replace": "替换现有作品",
"new": "作为新作品",
"back": "返回",
"submit": "提交",
"submitTemplate": "提交作品"
},
"multiLangEntry": {
"lang": "语言",
"name": "名称",
"add": "添加其他语言的名称",
"remove": "移除此名称"
}
}
19 changes: 19 additions & 0 deletions src/i18n/translations/zh-Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,24 @@
"type": "類型",
"label": "標籤"
}
},
"ticket": {
"title": "上傳至畫廊",
"infoSection": "基本信息",
"operationSection": "新建或替換",
"cityName": "作品名稱(需要英文)",
"description": "描述(可選,需英文)",
"change": "在設計器中更改作品",
"replace": "替換現有作品",
"new": "作為新作品",
"back": "返回",
"submit": "提交",
"submitTemplate": "提交作品"
},
"multiLangEntry": {
"lang": "語言",
"name": "名稱",
"add": "添加其他語言的名稱",
"remove": "移除此名稱"
}
}

0 comments on commit 5c0a38d

Please sign in to comment.