Skip to content

Commit

Permalink
Merge pull request ant-design#17042 from SamKirkland/AutoComplete-tra…
Browse files Browse the repository at this point in the history
…nslate

chore: Translate remainder of Typography & AutoComplete
  • Loading branch information
afc163 authored Jun 11, 2019
2 parents 2818dde + 740eb7f commit 5e297a3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
18 changes: 9 additions & 9 deletions components/auto-complete/demo/certain-category.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const { Option, OptGroup } = AutoComplete;

const dataSource = [
{
title: '话题',
title: 'Libraries',
children: [
{
title: 'AntDesign',
Expand All @@ -33,23 +33,23 @@ const dataSource = [
],
},
{
title: '问题',
title: 'Solutions',
children: [
{
title: 'AntDesign UI 有多好',
title: 'AntDesign UI',
count: 60100,
},
{
title: 'AntDesign 是啥',
title: 'AntDesign',
count: 30010,
},
],
},
{
title: '文章',
title: 'Articles',
children: [
{
title: 'AntDesign 是一个设计语言',
title: 'AntDesign design language',
count: 100000,
},
],
Expand All @@ -66,7 +66,7 @@ function renderTitle(title) {
target="_blank"
rel="noopener noreferrer"
>
更多
more
</a>
</span>
);
Expand All @@ -78,15 +78,15 @@ const options = dataSource
{group.children.map(opt => (
<Option key={opt.title} value={opt.title}>
{opt.title}
<span className="certain-search-item-count">{opt.count} 人 关注</span>
<span className="certain-search-item-count">{opt.count} people</span>
</Option>
))}
</OptGroup>
))
.concat([
<Option disabled key="all" className="show-all">
<a href="https://www.google.com/search?q=antd" target="_blank" rel="noopener noreferrer">
查看所有结果
View all results
</a>
</Option>,
]);
Expand Down
5 changes: 2 additions & 3 deletions components/auto-complete/demo/uncertain-category.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,16 @@ function renderOption(item) {
<Option key={item.category} text={item.category}>
<div className="global-search-item">
<span className="global-search-item-desc">
{item.query}
Found {item.query} on
<a
href={`https://s.taobao.com/search?q=${item.query}`}
target="_blank"
rel="noopener noreferrer"
>
{item.category}
</a>
区块中
</span>
<span className="global-search-item-count">{item.count} 个结果</span>
<span className="global-search-item-count">{item.count} results</span>
</div>
</Option>
);
Expand Down

0 comments on commit 5e297a3

Please sign in to comment.