Translate your Factorio mod easily with power of Crowdin
We provide service for simplifying Factorio mods translation. You only need to install our GitHub app. After this, the following actions will be performed automatically:
There are a lot of Factorio mods hosted on GitHub. Most of them are translated using pull requests. It is not very convenient (because it is unclear which strings are untranslated yet and translators have to know how to use git). So, I created a helper tool for configuring the translation process on Crowdin, a powerful localization platform.
locale
folder. Alternatively, you can manually select repositories for which app will be installedYou are done! Now share the link to this Crowdin project with translators.
Please note that only Crowdin should be used for translation. GitHub pull requests must not be used for translation, otherwise translations will be lost after the next synchronization from Crowdin! Consider adding link to Crowdin to your repository Readme (example).
We have a single Crowdin project. It consists of several folders, each folder corresponds to one mod. So, here are instructions on how to translate specific mod:
Then Crowdin translation interface will be opened where you can translate strings.
/locale/de
) must have the same names as files in /locale/en
folder.There are options which can be added to factorio-mods-localization.json
config file located in the root of your repository.
List of currently supported options (see corresponding section for description of each option):
{
"mods": ["mod1", "mod2"],
"weekly_update_from_crowdin": false,
"branch": "dev"
}
It is possible to have multiple Factorio mods in a single GitHub repository. Add "mods"
option with a list of submods to the config:
├── factorio-mods-localization.json // {"mods": ["Mod1", "Mod2"]}
├── Mod1
│ ├── locale/en
├── Mod2
│ ├── locale/en
It is possible to disable automatic weekly updates from Crowdin and perform them manually when needed. To do so, add "weekly_update_from_crowdin": false
option to the config.
Now you can perform an update manually using the following URL:
https://factorio-mods-localization.fly.dev/api/triggerUpdate?repo=OWNER/REPO
It is possible to use some other branch instead of the default branch. To do so, add "branch"
option to the config.
Note that the factorio-mods-localization.json
config file should still be in the default branch.