Skip to content

Commit

Permalink
📝 fix English translation missing of site footer
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Nov 8, 2019
1 parent 8c23d8b commit 94c3978
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 17 deletions.
4 changes: 2 additions & 2 deletions components/drawer/__tests__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ exports[`renders ./components/drawer/demo/user-profile.md correctly 1`] = `
<div
class="ant-list-item-meta-description"
>
Progresser AFX
Progresser XTech
</div>
</div>
</div>
Expand Down Expand Up @@ -310,7 +310,7 @@ exports[`renders ./components/drawer/demo/user-profile.md correctly 1`] = `
<div
class="ant-list-item-meta-description"
>
Progresser AFX
Progresser XTech
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions components/drawer/demo/user-profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class App extends React.Component {
<Avatar src="https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png" />
}
title={<a href="https://ant.design/index-cn">{item.name}</a>}
description="Progresser AFX"
description="Progresser XTech"
/>
</List.Item>
)}
Expand Down Expand Up @@ -146,7 +146,7 @@ class App extends React.Component {
</Row>
<Row>
<Col span={12}>
<DescriptionItem title="Department" content="AFX" />
<DescriptionItem title="Department" content="XTech" />
</Col>
<Col span={12}>
<DescriptionItem title="Supervisor" content={<a>Lin</a>} />
Expand Down
8 changes: 5 additions & 3 deletions site/theme/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,17 @@ module.exports = {
'app.footer.bug-report': 'Bug Report',
'app.footer.issues': 'Issues',
'app.footer.version': 'Version: ',
'app.footer.author': 'Created by AFX',
'app.footer.author': 'Created by XTech',
'app.footer.work_with_us': 'Work with Us',
'app.footer.more-product': 'More Products',
'app.footer.company': 'AFX',
'app.footer.company': 'XTech',
'app.footer.ant-design': 'UI Design Language',
'app.footer.yuque': 'YuQue',
'app.footer.yuque.slogan': 'Write your document as a team',
'app.footer.fengdie': 'FengDie',
'app.footer.fengdie.slogan': 'Mobile web app builder',
'app.footer.fengdie.slogan': 'Console Applications Builder',
'app.footer.antv.slogan': 'Data Visualization',
'app.footer.egg.slogan': 'Enterprise Node.js Framework',
'app.footer.zhihu': 'Ant Design Blog',
'app.footer.zhihu.xtech': 'Experience Cloud Blog',
'app.footer.seeconf': 'Experience Tech Conference',
Expand Down
16 changes: 8 additions & 8 deletions site/theme/template/Layout/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class Footer extends React.Component {
icon: (
<img
src="https://gw.alipayobjects.com/zos/rmsportal/nBVXkrFdWHxbZlmMbsaH.svg"
alt="AFX Cloud"
alt="Ant XTech"
/>
),
title: <FormattedMessage id="app.footer.more-product" />,
Expand All @@ -240,9 +240,9 @@ class Footer extends React.Component {
alt="yuque"
/>
),
title: '语雀',
title: <FormattedMessage id="app.footer.yuque" />,
url: 'https://yuque.com',
description: '知识创作与分享工具',
description: <FormattedMessage id="app.footer.yuque.slogan" />,
openExternal: true,
},
{
Expand All @@ -252,9 +252,9 @@ class Footer extends React.Component {
alt="yunfengdie"
/>
),
title: '云凤蝶',
title: <FormattedMessage id="app.footer.fengdie" />,
url: 'https://yunfengdie.com',
description: '中台建站平台',
description: <FormattedMessage id="app.footer.fengdie.slogan" />,
openExternal: true,
},
{
Expand All @@ -266,7 +266,7 @@ class Footer extends React.Component {
),
title: 'AntV',
url: 'https://antv.alipay.com',
description: '数据可视化',
description: <FormattedMessage id="app.footer.antv.slogan" />,
openExternal: true,
},
{
Expand All @@ -278,7 +278,7 @@ class Footer extends React.Component {
),
title: 'Egg',
url: 'https://eggjs.org',
description: '企业级 Node 开发框架',
description: <FormattedMessage id="app.footer.egg.slogan" />,
openExternal: true,
},
{
Expand All @@ -300,7 +300,7 @@ class Footer extends React.Component {
alt="xtech"
/>
),
title: '蚂蚁体验科技',
title: <FormattedMessage id="app.footer.xtech" />,
url: 'https://xtech.antfin.com/',
openExternal: true,
},
Expand Down
6 changes: 4 additions & 2 deletions site/theme/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,17 @@ module.exports = {
'app.footer.bug-report': '报告 Bug',
'app.footer.issues': '讨论列表',
'app.footer.version': '文档版本:',
'app.footer.author': '蚂蚁金服体验技术部出品 @ AFX',
'app.footer.author': '蚂蚁金服体验技术部出品 @ XTech',
'app.footer.work_with_us': '加入我们',
'app.footer.more-product': '更多产品',
'app.footer.company': 'AFX',
'app.footer.company': 'XTech',
'app.footer.ant-design': '蚂蚁 UI 体系',
'app.footer.yuque': '语雀',
'app.footer.yuque.slogan': '知识创作与分享工具',
'app.footer.fengdie': '云凤蝶',
'app.footer.fengdie.slogan': '移动建站平台',
'app.footer.antv.slogan': '数据可视化',
'app.footer.egg.slogan': '企业级 Node 开发框架',
'app.footer.zhihu': 'Ant Design 专栏',
'app.footer.zhihu.xtech': '体验科技专栏',
'app.footer.seeconf': '蚂蚁体验科技大会',
Expand Down

0 comments on commit 94c3978

Please sign in to comment.