Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-05 02:50:05 +01:00
Only download translations if a key is provided
Dieser Commit ist enthalten in:
Ursprung
9a01bf9ab2
Commit
f3c97887bc
@ -90,25 +90,25 @@ sourceSets {
|
||||
|
||||
val crowdinApiKey = "crowdin_apikey"
|
||||
|
||||
if (!project.hasProperty(crowdinApiKey)) ext[crowdinApiKey] = ""
|
||||
if (project.hasProperty(crowdinApiKey)) {
|
||||
tasks.named<UploadSourceFileTask>("crowdinUpload") {
|
||||
apiKey = "${project.property(crowdinApiKey)}"
|
||||
projectId = "worldedit-core"
|
||||
files = arrayOf(
|
||||
object {
|
||||
var name = "strings.json"
|
||||
var source = "$projectDir/src/main/resources/lang/strings.json"
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
tasks.named<UploadSourceFileTask>("crowdinUpload") {
|
||||
apiKey = "${project.property(crowdinApiKey)}"
|
||||
projectId = "worldedit-core"
|
||||
files = arrayOf(
|
||||
object {
|
||||
var name = "strings.json"
|
||||
var source = "$projectDir/src/main/resources/lang/strings.json"
|
||||
}
|
||||
)
|
||||
}
|
||||
tasks.named<DownloadTranslationsTask>("crowdinDownload") {
|
||||
apiKey = "${project.property(crowdinApiKey)}"
|
||||
destination = "$projectDir/src/main/resources/lang"
|
||||
projectId = "worldedit-core"
|
||||
}
|
||||
|
||||
tasks.named<DownloadTranslationsTask>("crowdinDownload") {
|
||||
apiKey = "${project.property(crowdinApiKey)}"
|
||||
destination = "$projectDir/src/main/resources/lang"
|
||||
projectId = "worldedit-core"
|
||||
}
|
||||
|
||||
tasks.named("processResources").configure {
|
||||
dependsOn("crowdinDownload")
|
||||
tasks.named("processResources").configure {
|
||||
dependsOn("crowdinDownload")
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren