ASEAN BTE Docs website consists all the important docs related to builder guide, plot system workflow, Building in BTE etc..
Made with Docusaurus
Make a ticket in our discord server and message us your email to gain access to our google spreadsheet and help us translate this site. (you can preview it here)
This section is for experienced developer to try compile the project and contributing to this resopitory.
Before installation, please make sure you have already installed following tools:
- Fork the project
- Clone the project
- Navigate to the project directory
cd ASEAN-Docs
- Install dependencies with
npm install
- Run
npm start
Go to docs page which you want to transalte/edit and click the edit button and do the following changes. Don't change the content inside ---
After editing the file, click the propose changes button and wait until the maintainers review it.
If the language is been already configured in docusaurus.config.js
, skip to step
If the text is wrapped under Translate
tag, skip to step
-
Configure the language in
docusaurus.config.js
by adding the languages's aliases to this list. -
Start the locale site by using the following commmand
npm run start -- --locale <locale-aliases>
-
Import the
Translate
module of docusaurus -
Wrap the text which is to be translated by using the
Translate
tag. Make sure that the text which is wrapped is simple, plain text without any tags in between them -
Run the following command, to generate JSON files where you could add the translated version of the text
npm run write-translations -- --locale <locale-aliases>
-
After translation, run
npm build
.