neo-project / neo-dev-portal

11 stars 17 forks source link

sample localization structure #41

Closed apisit closed 1 year ago

apisit commented 2 years ago
netlify[bot] commented 2 years ago

Deploy Preview for clever-mclean-ad3de1 failed.

Name Link
Latest commit c4edd92f20ef0eb6cbde8305f5d9e5fbd99fec54
Latest deploy log https://app.netlify.com/sites/clever-mclean-ad3de1/deploys/63887912620ea60009575193
apisit commented 2 years ago

@Celia18305 I fixed a few places for you as an example to it to build successfully. Basically you would need ` for things that looks like a html syntax`

e.g. <ECPoint> becomes  `<ECPoint>`
Celia18305 commented 2 years ago

@apisit I checked and found no further issues. Let me know if there is anything I can do.

apisit commented 2 years ago

Thanks, @Celia18305 How about the menu titles? Should they be in Chinese too?

image
Celia18305 commented 1 year ago

@apisit To translate the menu titles, which file should I edit?

apisit commented 1 year ago

@Celia18305 You can control menu title and its index by adding the following code below to the first line of every MD file.

---
sidebar_label: 'Overview'
sidebar_position: 0
---

Example here

There is also a _category.json file which is used to control the category menu title.

You can see examples from here

Celia18305 commented 1 year ago

@apisit I have updated menu titles in zh folder with reference to the corresponding English set. Let me know if anyting missing.