https://github.com/wilkingames/auto-translate
Translation tool for game localization
https://github.com/wilkingames/auto-translate
localization-tool node-js
Last synced: about 1 month ago
JSON representation
Translation tool for game localization
- Host: GitHub
- URL: https://github.com/wilkingames/auto-translate
- Owner: WilkinGames
- Created: 2024-11-21T18:22:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-03T23:51:36.000Z (over 1 year ago)
- Last Synced: 2025-02-04T20:15:26.218Z (over 1 year ago)
- Topics: localization-tool, node-js
- Language: JavaScript
- Homepage: https://wilkingames.com
- Size: 40 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Localization Generator
Translation tool for easy game localization!
This tool has been used to generate base localization for [Deadswitch 3](https://deadswitch3.com), [Dinogen Online](https://dinogenonline.com), [Arsenal Online](https://arsenalonline.net), and more.
## Instructions
`npm install` - Install the required modules
Add the desired `localization.json` to the `json` directory. This file must contain `en` (English) localization as a base.
`npm start` - Starts the translation queue
Once complete, the new file will be saved into the `output` directory.
## Details
Your input `localization.json` file should contain a single object with phrase keys.
For example, you supply the following `localization.json` file:
{
"STR_MULTIPLAYER": {
"en": "Multiplayer"
}
}
After running the generator, the output `localization.json` would be:
{
"STR_MULTIPLAYER": {
"en": "Multiplayer",
"ru": "Мультиплеер",
"zh": "多人游戏",
"uk": "Мультіплеер",
"fr": "Multijoueur",
"tr": "Çok Oyunculu",
"es": "Multijugador",
"it": "Multigiocatore",
"pt": "Multijogador",
"de": "Mehrspieler",
"pl": "Tryb wieloosobowy"
}
}
In your game, you would load the output file and reference the `"STR_MULTIPLAYER"` phrase to use the desired language.
## Configuration
You can change the desired output languages in `config.json` using the ISO 2-letter code.
For more info, see https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes
## Note
This tool uses **Google's Translate API** for translations. It is not 100% accurate and should be reviewed for complex phrases.