Skip to content

Commit 915c319

Browse files
committed
feat: support zh-Hans
1 parent 0b715b6 commit 915c319

File tree

119 files changed

+12500
-62
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+12500
-62
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ lib/core/MetadataBlog.js
88

99
translated_docs
1010
build/
11-
i18n/*
1211
.docusaurus
1312
.cache-loader
1413

docusaurus.config.js

+8
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,10 @@ module.exports = {
263263
label: 'Examples',
264264
position: 'left',
265265
},
266+
{
267+
type: 'localeDropdown',
268+
position: 'right',
269+
},
266270
{
267271
to: '/help',
268272
label: 'Help',
@@ -356,4 +360,8 @@ module.exports = {
356360
indexName: 'testing-library',
357361
},
358362
},
363+
i18n: {
364+
defaultLocale: 'en',
365+
locales: ['en', 'zh-Hans']
366+
}
359367
}

0 commit comments

Comments
 (0)