-
Clone the
splashkit-core
repositorygit clone https://github.com/thoth-tech/splashkit-core.git
https://docs.docker.com/engine/install/
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Please follow the instructions from the official website.
- Change directory to translator repo/folder.
cd tools/translator/
- Run the following command in the
splashkit-translator
root directory
docker compose build
It is advisable to translate into a limited set of languages. Translating to all available languages will take some time to complete.
docker compose run --rm headerdoc clib,cpp,pascal,python,csharp,docs
Translating SplashKit Core to clib,cpp,pascal,python,csharp,docs
Executing clib translator...
Done!
Output written!
Executing cpp translator...
Done!
Output written!
Executing pascal translator...
Done!
Output written!
Executing python translator...
Done!
Output written!
Executing csharp translator...
Done!
Output written!
Executing docs translator...
Done!
Output written!
Place `api.json` in the `data` directory of the `splashkit.io` repo
By default, this expects the splashkit-core folder is located under the same location as the splashkit-translator folder.
.
├── splashkit-core/tools/translator
The translated code will be available under splashkit-core/generated folder on the host machine.