Skip to content

Commit

Permalink
Fix title render for family-member-create
Browse files Browse the repository at this point in the history
  • Loading branch information
junzai97 committed Oct 9, 2021
1 parent 7b4fa98 commit ee7edb7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,15 @@ export class FamilyMemberCreate extends React.Component<IFamilyMemberCreateProps
<div className="mx-3">
<Row className="justify-content-center">
<Col md="8">
<h2>
<Translate contentKey="clubmanagementApp.clubFamily.member.createOrEditLabel">Add or edit a CC Family Member</Translate>
</h2>
{isNew ? (
<h2>
<Translate contentKey="clubmanagementApp.clubFamily.member.createLabel">Add CC Family Member</Translate>
</h2>
) : (
<h2>
<Translate contentKey="clubmanagementApp.clubFamily.member.editLabel">Edit CC Family Member</Translate>
</h2>
)}
</Col>
</Row>
<Row className="justify-content-center">
Expand Down
3 changes: 2 additions & 1 deletion src/main/webapp/i18n/en/clubFamily.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
},
"member": {
"title": "CC Family Member",
"createLabel": "Add a new CC Family Member",
"createLabel": "Add new CC Family Member",
"editLabel": "Edit CC Family Member",
"createOrEditLabel": "Add or edit a CC Family Member",
"notFound": "No CC Family Member found"
},
Expand Down
1 change: 1 addition & 0 deletions src/main/webapp/i18n/zh-cn/clubFamily.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"member": {
"title": "CC家族成员",
"createLabel": "添加新CC家族成员",
"editLabel": "更新CC家族成员",
"createOrEditLabel": "添加或编辑CC家族成员",
"notFound": "未发现任何CC家族成员"
},
Expand Down

0 comments on commit ee7edb7

Please sign in to comment.