Skip to content

Commit

Permalink
Add crowdlin auto translate at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
StellarWind22 committed Feb 16, 2022
1 parent 75e800b commit 37e74cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ repositories {
maven { url = "https://jitpack.io" }
maven { url = "https://maven.shedaniel.me/" }
maven { url = "https://maven.terraformersmc.com/" }
maven { url = "https://minecraft.guntram.de/maven/" }
}

dependencies {
Expand All @@ -58,6 +59,10 @@ dependencies {
exclude (group: "net.fabricmc.fabric-api")
}
include("com.github.Chocohead:Fabric-ASM:v${project.fabric_asm_version}")

//Crowdlin
modImplementation "de.guntram.mcmod:crowdin-translate:${project.crowdlin_version}"
include "de.guntram.mcmod:crowdin-translate:${project.crowdlin_version}"
}

processResources {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public class FabricShieldLibClient implements ClientModInitializer {
@Override
public void onInitializeClient() {

//Crowdlin auto download up-to-date translations
CrowdinTranslate.downloadTranslations(FabricShieldLib.MOD_ID);

/**
* Register tooltip callback this is the same as mixing into the end of:
* ItemStack.getTooltip()
Expand Down

0 comments on commit 37e74cf

Please sign in to comment.