Help translate the docs
I'm always looking for people to translate the documentation into different languages. If you want to help use this guide to help you get started!
How to translate
Prerequisites
nodejsinstallednpminstalledgitinstalled
Setup i18n
- Fork the https://github.com/thijsvanloef/palworld-server-docker repository
- Clone your created fork.
- Navigate to the
docusaurusfolder. - Add your locale to the i18n config on line in the docusaurus.config.js
- Run:
npm run write-translations -- --locale <locale code>
info
After running npm run write-translations -- --locale <locale code> a new folder will be created in the i18n folder
- Remove the
docusaurus-plugin-content-blogfolder - Create a
currentfolder insidedocusaurus-plugin-content-docs - Copy the contents of
docsto thecurrentfolder - Start translating!
Testing the translation
If you are done translating you can test that version of the site by doing the following:
- Navigate to the
docusaurusfolder - Run:
npm start -- --locale <locale code>
Opening a Pull request
- Go to https://github.com/thijsvanloef/palworld-server-docker/compare
- Select your repository/branch
- Press:
Create pull request