Skip to content

plasmoapp/crowdin-lib

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages