Skip to content

Commit

Permalink
docs(project): add translated docs (#1822)
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang authored Jul 18, 2021
1 parent eddc307 commit 79ab341
Show file tree
Hide file tree
Showing 272 changed files with 37,004 additions and 4,329 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "error",
"react/no-unescaped-entities": "off",
"react/prop-types": "off"
},
"overrides": [
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"prelease:force": "lerna publish from-package --yes --dist-tag next && ts-node scripts/release release",
"release": "lerna publish",
"prelease": "lerna publish --dist-tag next",
"lint": "eslint ."
"lint": "eslint .",
"translate": "ts-node scripts/translate"
},
"resolutions": {
"@types/react": "^17.0.0",
Expand Down Expand Up @@ -151,7 +152,8 @@
"vue-eslint-parser": "^7.1.1",
"webpack": "^4.41.5",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.10.1"
"webpack-dev-server": "^3.10.1",
"@google-cloud/translate": "^6.2.5"
},
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions packages/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
// allow specifying true explicitly for boolean props
"react/jsx-boolean-value": 0,
"react/no-did-update-set-state": 0,
"react/no-unescaped-entities": "off",
// maybe we should no-public
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/interface-name-prefix": 0,
Expand Down
46 changes: 33 additions & 13 deletions packages/antd/.umirc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,40 @@ export default {
favicon:
'//img.alicdn.com/imgextra/i3/O1CN01XtT3Tv1Wd1b5hNVKy_!!6000000002810-55-tps-360-360.svg',
outputPath: './doc-site',
navs: [
{
title: 'Ant Design',
path: '/components',
},
{
title: '主站',
path: 'https://v2.formilyjs.org',
},
{
title: 'GITHUB',
path: 'https://github.com/alibaba/formily',
},
locales: [
['en-US', 'English'],
['zh-CN', '中文'],
],
navs: {
'zh-CN': [
{
title: 'Ant Design',
path: '/zh-CN/components',
},
{
title: '主站',
path: 'https://v2.formilyjs.org',
},
{
title: 'GITHUB',
path: 'https://github.com/alibaba/formily',
},
],
'en-US': [
{
title: 'Ant Design',
path: '/components',
},
{
title: 'Home Site',
path: 'https://v2.formilyjs.org',
},
{
title: 'GITHUB',
path: 'https://github.com/alibaba/formily',
},
],
},
links: [
{
rel: 'stylesheet',
Expand Down
Loading

0 comments on commit 79ab341

Please sign in to comment.