Skip to content

Commit

Permalink
feat: support zh-Hans
Browse files Browse the repository at this point in the history
  • Loading branch information
xupea authored and xupea committed Mar 9, 2023
1 parent 96380af commit 5055c9b
Show file tree
Hide file tree
Showing 119 changed files with 12,672 additions and 62 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ lib/core/MetadataBlog.js

translated_docs
build/
i18n/*
.docusaurus
.cache-loader

Expand Down
9 changes: 9 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ module.exports = {
remarkPlugins: [
[require('@docusaurus/remark-plugin-npm2yarn'), { sync: true }],
],
editLocalizedFiles: true,
editUrl:
'https://github.com/testing-library/testing-library-docs/edit/main/',
path: './docs',
Expand Down Expand Up @@ -263,6 +264,10 @@ module.exports = {
label: 'Examples',
position: 'left',
},
{
type: 'localeDropdown',
position: 'right',
},
{
to: '/help',
label: 'Help',
Expand Down Expand Up @@ -356,4 +361,8 @@ module.exports = {
indexName: 'testing-library',
},
},
i18n: {
defaultLocale: 'en',
locales: ['en', 'zh-Hans']
}
}
Loading

0 comments on commit 5055c9b

Please sign in to comment.