Super-duper community-powered translations. Used for Unknown Worlds Community Translations. Based on Laravel.
- Store your source text in English.json file
- When the game is built, upload the source file to the app - it gets processed: strings get added, updated or deleted
- Right after download the latest translations from the app - it's going to be a zip file containing all the data you need
- Check in those files into your repository and proceed with the build process
- PHP >= 8.5
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
- Zip PHP Extension
- Point web server's root directory to /public
- Copy .env.testing to .env, fill the configuration
- Run "composer install" from the root directory of the application
- Run "php artisan key:generate" to set unique crypto key
Use Laravel Herd (Pro, for the MySQL service)
- Link the site as
uwetranslate.testand isolate it to the PHP version it should run on (herd isolate 8.5) - Create the testing database:
herd db:create uwetranslate-testing - Point
.env.testingat Herd's MySQL (DB_HOST=127.0.0.1,DB_PORT=3307,DB_USERNAME=root, empty password) - Codeception reads its DB settings from it too
./codeception run(Linux/macOS)codeception run(Windows/Herd - uses the PHP version Herd serves the site with)
- You can't use numbers as translation keys
Created by Unknown Worlds Entertainment's Lukas Nowaczek (@lnowaczek).
Distributed under the MIT license. See LICENSE for more information.