Skip to content

Commit

Permalink
zh-Hans -> mandarin
Browse files Browse the repository at this point in the history
  • Loading branch information
SwiftAdviser committed Apr 4, 2024
1 parent e4513c3 commit 568746a
Show file tree
Hide file tree
Showing 219 changed files with 3 additions and 37 deletions.
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ const config = {
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en', 'zh-Hans'],
locales: ['en', 'mandarin'],
localeConfigs: {
en: {
label: 'English',
},
'zh-Hans': {
mandarin: {
label: '简体中文',
},
},
Expand Down
File renamed without changes.

This file was deleted.

2 changes: 1 addition & 1 deletion src/theme/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function Footer() {


useEffect(() => {
if (i18n.currentLocale === "zh-Hans") {
if (i18n.currentLocale === "mandarin") {
setFOOTER_COLUMN_LINKS(FOOTER_COLUMN_LINKS_CN);
}
}, [i18n.currentLocale]);
Expand Down

0 comments on commit 568746a

Please sign in to comment.