Skip to content

Conversation

@MoRanYue
Copy link

@MoRanYue MoRanYue commented Feb 6, 2024

Add some sChinese docs, and improve i18n files copying script.

@localcc
Copy link
Contributor

localcc commented Feb 8, 2024

Every page returns not found when I try to open the website in chinese, did you commit all the files?🤔

@MoRanYue
Copy link
Author

MoRanYue commented Feb 8, 2024

Every page returns not found when I try to open the website in chinese, did you commit all the files?🤔

Ok, you cant use yarn start or npm run start to view the webpages locally except editing defaultLanguage to zh-hans in Docusaurus.config.ts, the another way is to run yarn build or npm run build, then run the server that compiled.

As you see, the command yarn start only compiles the pages which defaultLanguage, so others wont be compiled. if you dont trust, you may try to view the pages in other languages, you will get the same result.

for testing, I kept that configuration be zh-hans. But in last second commit, it wasnt en so that there will have something wrong if the website runs online. Because of the reason, I pushed the latest commit to fix it.

@MoRanYue

This comment was marked as resolved.

@localcc
Copy link
Contributor

localcc commented Feb 10, 2024

image

Docusaurus still tells me there are broken anchors 🤔

@MoRanYue
Copy link
Author

MoRanYue commented Feb 13, 2024

image

Docusaurus still tells me there are broken anchors 🤔

its strange, there arent any problems on my device after doing it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants