site: document title should be localized, close: #3424

This commit is contained in:
Benjy Cui 2016-10-14 09:55:12 +08:00
parent 8eb2eaf288
commit 9e61fdd5d1

View File

@ -1,4 +1,5 @@
import React from 'react';
import { injectIntl } from 'react-intl';
import DocumentTitle from 'react-document-title';
import Link from './Link';
import Banner from './Banner';
@ -86,9 +87,9 @@ function getStyle() {
`;
}
export default function Home() {
function Home(props) {
return (
<DocumentTitle title="Ant Design - 一个 UI 设计语言">
<DocumentTitle title={`Ant Design - ${props.intl.formatMessage({ id: 'app.home.slogan' })}`}>
<div className="main-wrapper">
<Link />
<Banner />
@ -101,3 +102,5 @@ export default function Home() {
</DocumentTitle>
);
}
export default injectIntl(Home);