Skip to content

Commit

Permalink
Merge pull request #234 from antvis/upgrade-gatsby-theme-antv
Browse files Browse the repository at this point in the history
docs: upgrade @antv/gatsby-theme-antv to 0.5.0
  • Loading branch information
诸岳 authored Oct 25, 2019
2 parents 3850e68 + fade11b commit 45f4c04
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}
},
"dependencies": {
"@antv/gatsby-theme-antv": "^0.4.0",
"@antv/gatsby-theme-antv": "^0.5.0",
"@antv/istanbul": "0.0.0",
"@antv/torch": "^1.0.0",
"gatsby": "^2.15.34",
Expand Down
8 changes: 2 additions & 6 deletions site/locale.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"en": {
"translation": {
"首页": "Home Page"
}
}
}
"首页": "Home Page"
}
4 changes: 2 additions & 2 deletions site/pages/index.zh.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react';
import SEO from '@antv/gatsby-theme-antv/site/components/seo';
import SEO from '@antv/gatsby-theme-antv/site/components/Seo';
import { useTranslation } from 'react-i18next';

const IndexPage = () => {
const { t } = useTranslation();
return (
<>
<SEO title="蚂蚁数据可视化" lang="zh" />
<div style={{ margin: '0 auto', padding: '0 80px' }}>{t('首页')}</div>
<div style={{ margin: '0 auto', padding: '0 60px' }}>{t('首页')}</div>
</>
);
};
Expand Down

0 comments on commit 45f4c04

Please sign in to comment.