Kotlin library and Gradle plugin for downloading crowdin translations.
repositories {
maven("https://repo.plasmoverse.com/snapshots")
}
dependencies {
implementation("su.plo.crowdin:lib:$version")
}
See LibTest.kt
Gradle plugin downloads crowdin languages to /generated/sources/crowdin
folder and adds this to the main source set.
By default, download action is triggered before compileJava
(or compileKotlin
), but you can add dependsOn(crowdinDownload)
manually to your task.
settings.gradle.kts
pluginManagement {
repositories {
maven("https://repo.plasmoverse.com/snapshots")
}
}
build.gradle.kts
plugins {
id("su.plo.crowdin.plugin") version $version
}
plasmoCrowdin {
projectId = "plasmo-voice"
sourceFileName = "client.json"
resourceDir = "assets/plasmovoice/lang"
// uncomment if you want to create `list` file with all mc language codes separated by new line.
// createList = true
}
- CrowdinTranslate (map of the mc->crowdin language codes)