Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/update docs #157

Merged
merged 2 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .i18nrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ module.exports = defineConfig({
jsonMode: true,
},
// 后续说明文档、技术文档等所需的国际化配置(暂时不需要)
// markdown: {
// // reference: '你需要保持 mdx 的组件格式,输出文本不需要在最外层包裹任何代码块语法',
// entry: ['./README.zh-CN.md', './contributing/**/*.zh-CN.md', './docs/**/*.zh-CN.mdx'],
// entryLocale: 'zh-CN',
// outputLocales: ['en-US'],
// exclude: ['./contributing/_Sidebar.md', './contributing/_Footer.md', './contributing/Home.md'],
// outputExtensions: (locale, { filePath }) => {
// if (filePath.includes('.mdx')) {
// if (locale === 'en-US') return '.mdx';
// return `.${locale}.mdx`;
// } else {
// if (locale === 'en-US') return '.md';
// return `.${locale}.md`;
// }
// },
// },
markdown: {
// reference: '你需要保持 mdx 的组件格式,输出文本不需要在最外层包裹任何代码块语法',
entry: ['./README.zh-CN.md', './contributing/**/*.zh-CN.md', './docs/**/*.zh-CN.mdx'],
entryLocale: 'zh-CN',
outputLocales: ['en-US'],
exclude: ['./contributing/_Sidebar.md', './contributing/_Footer.md', './contributing/Home.md'],
outputExtensions: (locale, { filePath }) => {
if (filePath.includes('.mdx')) {
if (locale === 'en-US') return '.mdx';
return `.${locale}.mdx`;
} else {
if (locale === 'en-US') return '.md';
return `.${locale}.md`;
}
},
},
});
Loading
Loading