Yes... This is a translation tool written in Java, using plain html/css/js 💀
- 📌 Table of contents
- 📜 Features overview
- 🗃️ Database setup
- 📂 Supported file formats
- 🏳️ Language code
- 📷 Screenshots
- Support for multiple file formats
- Manage multiple accounts
- Track progress of accounts
Users who are eligible to translate, are stored in a database. For this you would need to set up a MongoDb collection. Each document represents a user in the following scheme:
Field name | Data type | Description |
---|---|---|
username | string | Username used to log in to the site |
password | string | Password used to log in to the site |
languages | string[] | Language codes the user is allowed to translate |
translations | integer | How many entries did the user translate? |
The dashboard has no way of setting those users up. You would need to create the documents manually.
Connect your own database, by putting your credentials in ./src/main/resources/config.properties
mongoConnectionString=mongodb://localhost
databaseName=Translate
collectionName=Users
The supported file formats are hard coded in, to suit my needs:
The .properties
files, located under ./bot/
are translations files used in the main bot application written in java.
There one file represents one language.
The .json
file, located under ./website.json
, is responsible for translations for the website. There all languages are
crammed together in one file, grouped as json objects:
{
"en-GB": {},
"de": {},
"fr": {}
}
Discord commands can get translated as well but because the format is a bit special it needs its own system. Check the Discord documentation for more information on them.
I used the same language codes Discord is using. In their documentation there is no information on what they have based on their system, but I assume they used the BCP 47 system.