Skip to content

Commit

Permalink
feat: 增加英文版
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis.zpf committed Oct 21, 2024
1 parent d513147 commit e247732
Show file tree
Hide file tree
Showing 121 changed files with 996 additions and 938 deletions.
3 changes: 3 additions & 0 deletions .dumi/pages/index-en/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import CustomHomePage from '../index';

export default CustomHomePage;
12 changes: 12 additions & 0 deletions .dumi/pages/index/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* .dumi/pages/index.tsx */
import HomeBaseLayout from '../../theme/layouts/HomePageLayout';

const CustomHomePage = () => {
return (
<div>
<HomeBaseLayout />
</div>
);
};

export default CustomHomePage;
4 changes: 3 additions & 1 deletion .dumi/tmp/core/route.tsx

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions .dumi/tmp/dumi/locales/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const locales = [
];
export const messages = {
"en-US": {
"header.search.placeholder": "Type keywords...",
"header.search.placeholder": "Input to search",
"header.color.mode.light": "Light Mode",
"header.color.mode.dark": "Dark Mode",
"header.color.mode.auto": "Follow System",
Expand Down Expand Up @@ -134,6 +134,7 @@ export const messages = {
"app.theme.switch.compact": "Compact theme",
"app.header.menu.more": "More",
"app.footer.last.updated": "Last updated: ",
"app.footer.actions.edit": "Improve this documentation"
"app.footer.actions.edit": "Improve this documentation",
"header.search.placeholder": "Input to search"
}
};
892 changes: 451 additions & 441 deletions .dumi/tmp/dumi/meta/index.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .dumi/tmp/dumi/theme/ContextWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const entryExports = {
const pkg = {"name":"antd-mini","description":"antd-mini 是支付宝小程序 UI 组件库,遵循 Ant Design 规范。","version":"2.36.6","license":"MIT","repository":{"type":"git","url":"git+https://github.com/ant-design/ant-design-mini.git","branch":"master","platform":"github"}};
const historyType = "browser";
const hostname = "https://mini.ant.design";
const themeConfig = {"footer":"© 2024 Made with ❤ by\n <a className={styles.copyrightLink} href='https://xtech.antfin.com' target='_blank'>\n XTech\n </a>","prefersColor":{"default":"auto","switch":true},"nprogress":true,"lastUpdated":true,"name":"Ant Design Mini","rtl":false,"logo":"https://mdn.alipayobjects.com/huamei_2jrq4g/afts/img/A*xfx9Q4kg62MAAAAAAAAAAAAADtF8AQ/original","nav":{"zh-CN":[{"title":"指南","link":"/guide/quick-start"},{"title":"组件","link":"/components/button"},{"title":"资源","link":"/resources"},{"title":"国内镜像","link":"https://ant-design-mini.antgroup.com"},{"title":"发布日志","link":"https://github.com/ant-design/ant-design-mini/releases"}],"en":[{"title":"Guide","link":"/guide/quick-start-en"},{"title":"Components","link":"/components/button-en"},{"title":"Resources","link":"/resources-en"},{"title":"Domestic Mirror","link":"https://ant-design-mini.antgroup.com"},{"title":"Releases","link":"https://github.com/ant-design/ant-design-mini/releases"}]},"github":"https://github.com/ant-design/ant-design-mini","localesEnhance":[{"id":"zh-CN","switchPrefix":"中"},{"id":"en","switchPrefix":"EN"}],"title":"Ant Design Mini","description":{"zh-CN":"探索移动端小程序的极致体验"},"actions":{"zh-CN":[{"type":"primary","text":"快速上手","link":"/guide/quick-start"},{"text":"在线体验","link":"/components/button"}]},"features":{"zh-CN":[{"title":"高性能","details":"无需配置,即可拥有最佳的包体积大小和极致的性能"},{"title":"可定制","details":"可以高效地对组件外观进行调整或创造自己的主题"},{"title":"原子化","details":"每个组件的功能不多也不少,恰好就是你所需"},{"title":"流畅感","details":"拥有流畅的手势和细腻的动画,助力产品打造出极致体验"}]},"loading":{"skeleton":["/guide","/components","/guide","/components"]},"docVersions":{"v2":"","v1":"https://1x-mini.ant.design","v0":"https://0x-mini.ant.design"},"footerLinks":[{"title":"相关资源","items":[{"title":"Ant Design","url":"https://ant.design","openExternal":true},{"title":"Ant Design Charts","url":"https://charts.ant.design","openExternal":true},{"title":"Ant Design Pro","url":"https://pro.ant.design","openExternal":true},{"title":"Ant Design Pro Components","url":"https://procomponents.ant.design","openExternal":true},{"title":"Ant Design Mobile","url":"https://mobile.ant.design","openExternal":true},{"title":"Ant Design Landing","description":"首页模板集","url":"https://landing.ant.design","openExternal":true},{"title":"Scaffolds","description":"脚手架市场","url":"https://scaffold.ant.design","openExternal":true},{"title":"Umi","description":"react 应用开发框架","url":"https://umijs.org","openExternal":true},{"title":"Dumi","description":"组件/文档研发工具","url":"https://d.umijs.org","openExternal":true},{"title":"qiankun","description":"微前端框架","url":"https://qiankun.umijs.org","openExternal":true},{"title":"ahooks","description":"React Hooks 库","url":"https://github.com/alibaba/hooks","openExternal":true},{"title":"Ant Motion","description":"设计动效","url":"https://motion.ant.design","openExternal":true}]},{"title":"社区","items":[{"title":"Awesome Ant Design","url":"https://github.com/websemantics/awesome-ant-design","openExternal":true},{"title":"Medium","url":"http://medium.com/ant-design/","openExternal":true},{"title":"Twitter","url":"http://twitter.com/antdesignui","openExternal":true},{"title":"体验科技专栏","url":"http://zhuanlan.zhihu.com/xtech","openExternal":true}]},{"title":"帮助","items":[{"icon":"https://github-production-user-asset-6210df.s3.amazonaws.com/20694238/256181695-b05fa72a-4ab5-479d-bb74-3d723755de47.png","title":"GitHub","url":"https://github.com/ant-design/ant-design-mini","openExternal":true},{"icon":"https://github-production-user-asset-6210df.s3.amazonaws.com/20694238/256181680-3b031d0f-1c51-48d2-a676-b2f82aa23e09.png","title":"报告 Bug","url":"https://github.com/ant-design/ant-design-mini/issues","openExternal":true},{"icon":"https://github-production-user-asset-6210df.s3.amazonaws.com/20694238/256181701-b51d6a6f-3190-4525-80d0-43ac194437c9.png","title":"讨论列表","url":"https://github.com/ant-design/ant-design-mini/issues","openExternal":true}]},{"title":"更多产品","icon":"https://gw.alipayobjects.com/zos/rmsportal/nBVXkrFdWHxbZlmMbsaH.svg","items":[{"icon":"https://gw.alipayobjects.com/zos/rmsportal/XuVpGqBFxXplzvLjJBZB.svg","title":"语雀","url":"https://yuque.com","description":"构建你的数字花园","openExternal":true},{"icon":"https://gw.alipayobjects.com/zos/antfincdn/nc7Fc0XBg5/8a6844f5-a6ed-4630-9177-4fa5d0b7dd47.png","title":"AntV","url":"https://antv.vision","description":"数据可视化解决方案","openExternal":true},{"icon":"https://www.eggjs.org/logo.svg","title":"Egg","url":"https://eggjs.org","description":"企业级 Node.js 框架","openExternal":true},{"icon":"https://gw.alipayobjects.com/zos/rmsportal/DMDOlAUhmktLyEODCMBR.ico","title":"Kitchen","description":"Sketch 工具集","url":"https://kitchen.alipay.com","openExternal":true},{"icon":"https://gw.alipayobjects.com/zos/rmsportal/nBVXkrFdWHxbZlmMbsaH.svg","title":"蚂蚁体验科技","url":"https://xtech.antfin.com/","openExternal":true}]}],"sourceLink":"https://github.com/ant-design/ant-design-mini/tree/docs-site-dev-dennis/{fileName}#L{line}","editLink":"https://github.com/ant-design/ant-design-mini/edit/docs-site-dev-dennis/{filename}","ssr":false};
const themeConfig = {"footer":"© 2024 Made with ❤ by\n <a className={styles.copyrightLink} href='https://xtech.antfin.com' target='_blank'>\n XTech\n </a>","prefersColor":{"default":"auto","switch":true},"nprogress":true,"lastUpdated":true,"name":"Ant Design Mini","rtl":false,"logo":"https://mdn.alipayobjects.com/huamei_2jrq4g/afts/img/A*xfx9Q4kg62MAAAAAAAAAAAAADtF8AQ/original","nav":{"zh-CN":[{"title":"指南","link":"/guide/quick-start"},{"title":"组件","link":"/components/button"},{"title":"资源","link":"/resources"},{"title":"国内镜像","link":"https://ant-design-mini.antgroup.com"},{"title":"发布日志","link":"https://github.com/ant-design/ant-design-mini/releases"}],"en":[{"title":"Guide","link":"/guide/quick-start-en"},{"title":"Components","link":"/components/button-en"},{"title":"Resources","link":"/resources-en"},{"title":"Domestic Mirror","link":"https://ant-design-mini.antgroup.com"},{"title":"Releases","link":"https://github.com/ant-design/ant-design-mini/releases"}]},"github":"https://github.com/ant-design/ant-design-mini","localesEnhance":[{"id":"zh-CN","switchPrefix":"中"},{"id":"en","switchPrefix":"EN"}],"title":"Ant Design Mini","description":{"zh-CN":"探索移动端小程序的极致体验","en":"Explore the ultimate experience of mobile applets"},"actions":{"zh-CN":[{"type":"primary","text":"快速上手","link":"/guide/quick-start"},{"text":"在线体验","link":"/components/button"}],"en":[{"type":"primary","text":"Get started quickly","link":"/guide/quick-start-en"},{"text":"Online Experience","link":"/components/button-en"}]},"features":{"zh-CN":[{"title":"高性能","details":"无需配置,即可拥有最佳的包体积大小和极致的性能"},{"title":"可定制","details":"可以高效地对组件外观进行调整或创造自己的主题"},{"title":"原子化","details":"每个组件的功能不多也不少,恰好就是你所需"},{"title":"流畅感","details":"拥有流畅的手势和细腻的动画,助力产品打造出极致体验"}],"en":[{"title":"high performance","details":"No configuration required, you can have the best package size and extreme performance"},{"title":"Customizable","details":"You can efficiently adjust the appearance of components or create your own themes"},{"title":"Atomization","details":"Each component has just what you need, no more, no less"},{"title":"Sense of Fluency","details":"With smooth gestures and delicate animations, it helps the product create the ultimate experience"}]},"loading":{"skeleton":["/guide","/components","/guide","/components"]},"docVersions":{"v2":"","v1":"https://1x-mini.ant.design","v0":"https://0x-mini.ant.design"},"footerLinks":[{"title":"相关资源","items":[{"title":"Ant Design","url":"https://ant.design","openExternal":true},{"title":"Ant Design Charts","url":"https://charts.ant.design","openExternal":true},{"title":"Ant Design Pro","url":"https://pro.ant.design","openExternal":true},{"title":"Ant Design Pro Components","url":"https://procomponents.ant.design","openExternal":true},{"title":"Ant Design Mobile","url":"https://mobile.ant.design","openExternal":true},{"title":"Ant Design Landing","description":"首页模板集","url":"https://landing.ant.design","openExternal":true},{"title":"Scaffolds","description":"脚手架市场","url":"https://scaffold.ant.design","openExternal":true},{"title":"Umi","description":"react 应用开发框架","url":"https://umijs.org","openExternal":true},{"title":"Dumi","description":"组件/文档研发工具","url":"https://d.umijs.org","openExternal":true},{"title":"qiankun","description":"微前端框架","url":"https://qiankun.umijs.org","openExternal":true},{"title":"ahooks","description":"React Hooks 库","url":"https://github.com/alibaba/hooks","openExternal":true},{"title":"Ant Motion","description":"设计动效","url":"https://motion.ant.design","openExternal":true}]},{"title":"社区","items":[{"title":"Awesome Ant Design","url":"https://github.com/websemantics/awesome-ant-design","openExternal":true},{"title":"Medium","url":"http://medium.com/ant-design/","openExternal":true},{"title":"Twitter","url":"http://twitter.com/antdesignui","openExternal":true},{"title":"体验科技专栏","url":"http://zhuanlan.zhihu.com/xtech","openExternal":true}]},{"title":"帮助","items":[{"icon":"https://github-production-user-asset-6210df.s3.amazonaws.com/20694238/256181695-b05fa72a-4ab5-479d-bb74-3d723755de47.png","title":"GitHub","url":"https://github.com/ant-design/ant-design-mini","openExternal":true},{"icon":"https://github-production-user-asset-6210df.s3.amazonaws.com/20694238/256181680-3b031d0f-1c51-48d2-a676-b2f82aa23e09.png","title":"报告 Bug","url":"https://github.com/ant-design/ant-design-mini/issues","openExternal":true},{"icon":"https://github-production-user-asset-6210df.s3.amazonaws.com/20694238/256181701-b51d6a6f-3190-4525-80d0-43ac194437c9.png","title":"讨论列表","url":"https://github.com/ant-design/ant-design-mini/issues","openExternal":true}]},{"title":"更多产品","icon":"https://gw.alipayobjects.com/zos/rmsportal/nBVXkrFdWHxbZlmMbsaH.svg","items":[{"icon":"https://gw.alipayobjects.com/zos/rmsportal/XuVpGqBFxXplzvLjJBZB.svg","title":"语雀","url":"https://yuque.com","description":"构建你的数字花园","openExternal":true},{"icon":"https://gw.alipayobjects.com/zos/antfincdn/nc7Fc0XBg5/8a6844f5-a6ed-4630-9177-4fa5d0b7dd47.png","title":"AntV","url":"https://antv.vision","description":"数据可视化解决方案","openExternal":true},{"icon":"https://www.eggjs.org/logo.svg","title":"Egg","url":"https://eggjs.org","description":"企业级 Node.js 框架","openExternal":true},{"icon":"https://gw.alipayobjects.com/zos/rmsportal/DMDOlAUhmktLyEODCMBR.ico","title":"Kitchen","description":"Sketch 工具集","url":"https://kitchen.alipay.com","openExternal":true},{"icon":"https://gw.alipayobjects.com/zos/rmsportal/nBVXkrFdWHxbZlmMbsaH.svg","title":"蚂蚁体验科技","url":"https://xtech.antfin.com/","openExternal":true}]}],"sourceLink":"https://github.com/ant-design/ant-design-mini/tree/docs-site-dev-dennis/{fileName}#L{line}","editLink":"https://github.com/ant-design/ant-design-mini/edit/docs-site-dev-dennis/{filename}","ssr":false};
const _2_level_nav_available = true;

export default function DumiContextWrapper() {
Expand Down
30 changes: 30 additions & 0 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export default defineConfig({
title: 'Ant Design Mini',
description: {
'zh-CN': '探索移动端小程序的极致体验',
'en': 'Explore the ultimate experience of mobile applets'
},
actions: {
'zh-CN': [
Expand All @@ -117,6 +118,17 @@ export default defineConfig({
link: '/components/button',
},
],
'en': [
{
type: 'primary',
text: 'Get started quickly',
link: '/guide/quick-start-en',
},
{
text: 'Online Experience',
link: '/components/button-en',
},
],
},
features: {
'zh-CN': [
Expand All @@ -137,6 +149,24 @@ export default defineConfig({
details: '拥有流畅的手势和细腻的动画,助力产品打造出极致体验',
},
],
'en': [
{
title: 'high performance',
details: 'No configuration required, you can have the best package size and extreme performance',
},
{
title: 'Customizable',
details: 'You can efficiently adjust the appearance of components or create your own themes',
},
{
title: 'Atomization',
details: 'Each component has just what you need, no more, no less',
},
{
title: 'Sense of Fluency',
details: 'With smooth gestures and delicate animations, it helps the product create the ultimate experience',
},
],
},
loading: {
skeleton: ['/guide', '/components', '/guide', '/components'],
Expand Down
2 changes: 1 addition & 1 deletion compiled/alipay/src/ActionSheet/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
nav:
path: /components
group:
title: 反馈
title: Feedback
order: 12
toc: 'content'
---
Expand Down
4 changes: 2 additions & 2 deletions compiled/alipay/src/Avatar/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
nav:
path: /components
group:
title: 信息展示
title: Information Display
order: 8
toc: content
---
Expand All @@ -26,6 +26,6 @@ When you need to show the characteristics of people or things more intuitively.
| Property | Description | Type | Default Value |
|---------|----------|------|-----------|
| className | Class Name | string | - |
| size | 大小,可选 `x-small``small``medium``large` | string | `medium` |
| size | size, optional `x-small``small``medium``large` | string | `medium` |
| src | avatar address | string | Gray built-in picture |
| style | Style | string | - |
6 changes: 3 additions & 3 deletions compiled/alipay/src/Badge/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
nav:
path: /components
group:
title: 引导提示
title: Guide & Hint
order: 14
toc: 'content'
---
Expand All @@ -27,8 +27,8 @@ Use when you need to display numbers, text, or little red dots in the upper righ
| className | Class name of the component root node | string | - |
| offsetX | Horizontal offset | string | '-50%' |
| offsetY | Offset in vertical direction | string | '-50%' |
| position | 徽标相对于容器的位置,选项包括:`top-left``top-right``top-center``left``right``bottom-left``bottom-center` `bottom-right` | string | `top-right` |
| position | Position of the logo relative to the container, options include:`top-left``top-right``top-center``left``right``bottom-left``bottom-center` and `bottom-right` | string | `top-right` |
| stroke | Does the logo have a stroke | boolean | false |
| style | Custom Style | object | - |
| text | Logo content. Empty means that only red dots are displayed. It can be numbers or text. If the number exceeds 99, it will be displayed `...` | string \| number \| slot | - |
| type | 徽标Type,选项包括:`dot`(红点)、`number`(数字Type,超过 99 会自动转换)、`text`(文字气泡)和 `bubble`(气泡形态,带有箭头) | string | `dot` |
| type | Logo type, options include:`dot`(red dot),`number`(Number type, more than 99 will be automatically converted),`text`(text bubbles) and `bubble`(Bubble form, with arrow) | string | `dot` |
Loading

0 comments on commit e247732

Please sign in to comment.