Skip to content

DiscordBot to upload .json files to crowdin | VintageStory Modding Community https://crowdin.com/project/vintage-story-mods

License

Notifications You must be signed in to change notification settings

NicIAss/VintageTranslation

Repository files navigation

Links

Table of content

General

The source files on the Crowdin project are getting updated daily. That means the en.json files from the latest released or updated mods are getting pulled from the official Moddb. So the next time you update or release your mod they will get uploaded automatically.

The translated files can be grabbed by mod authors from this Dropbox page. (The up-to-date translations are being updated daily as well. No LIVE updates)

Uploading translations

If your mod has already translated files you need to manually add them to the crowdin project.

The following Tutorial shows how that can be done:

Uploading.existing.translations.mp4

Downloading translations

If you want to update your mod and want to use the uptodate translations head over to this Dropbox. You can download the translated files for each mod.

Restrictions

  • manual one time uploading of already translated files via Crowdin for modauthors.
  • only en.json files from the modid folder are being uploaded. Example: \assets\modid\lang\en.json NOT \assets\game\lang\en.json
  • Daily updates no LIVE updates.

Possible Moddb integration

image

To reproduce this use the following image:

image

You can also use my reference here and use the same witdh and height:

https://i.imgur.com/8vVoFzG.png

image

The Link structure looks like this:

https://crowdin.com/translate/vintage-story-mods/329

So you will need to find your id for your mod. Which you can easily see in the url if you go into the editor for a random language for your mods file. And adjust that accordingly.

If you set up the link like above, your possible translators will get right into the editor and be able to select their lang and start translating <3

image

Useful scripts

by @Gerste

I just did a small powershell skript to autodownload translations from crowdin directly into you project. It automatically reads out all necessary data for downloading from your modinfo file (You might need to adjust the paths depending on where the script lies) Feel free to steal if anybody is interested:

$modinfo=Get-Content -Path resources\modinfo.json | ConvertFrom-Json
$modid=$modinfo.modid;
$authors=$modinfo.authors -Join '';
$downloadpath="resources/assets/$modid/lang/";
$downloadfile= $downloadpath + 'translations.zip';
Invoke-Webrequest -Uri "https://dl.dropboxusercontent.com/scl/fo/q7u3idxz3edsytki8n6m4/h/$modid-$authors.zip?dl=1&rlkey=mc3xn22a49qwrjp5cmx1he0ay" -OutFile $downloadfile;
Expand-Archive -Force -Path $downloadfile -DestinationPath $downloadpath;
Remove-Item -Path $downloadfile; 

by @Darkhekromant

https://github.com/DArkHekRoMaNT/VSMods/blob/de45ee089482c20ae852369571b4708af6baf78d/Directory.Build.targets#L161

About

DiscordBot to upload .json files to crowdin | VintageStory Modding Community https://crowdin.com/project/vintage-story-mods

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published