blob: 888e996b723a5cca72ca80b157c4b8908c9fbcd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
plugins {
kotlin("jvm") version "2.0.20"
id("moe.nea.mc-auto-translations")
application
}
repositories {
mavenCentral()
}
dependencies {
implementation("com.google.code.gson:gson:2.11.0")
}
mcAutoTranslations {
translationFunction.set("moe.nea.mcautotranslations.example.tr")
translationFunctionResolved.set("moe.nea.mcautotranslations.example.trResolved")
}
mcAutoTranslations.collectTranslationsTaskFor(sourceSets.main.get()) {
baseTranslations.from(file("en_us.json"))
outputFileName("en_us.json")
}
tasks.processResources {
from(mcAutoTranslations.collectTranslationsTaskFor(sourceSets.main.get())) {
into("assets/minecraft/lang")
}
}
application.mainClass.set("moe.nea.mcautotranslations.example.TestKt")
|