Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1.74 KB

README.md

File metadata and controls

55 lines (43 loc) · 1.74 KB

mc-crowdin-lib

Kotlin library and Gradle plugin for downloading crowdin translations.

Library

Adding dependency to the project

version

repositories {
    maven("https://repo.plasmoverse.com/snapshots")
}

dependencies {
    implementation("su.plo.crowdin:lib:$version")
}

Usage

See LibTest.kt

Gradle plugin

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.

Usage

version

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
}

Credits