Skip to content

How to use API.

Cat Core edited this page Jul 5, 2022 · 18 revisions

Add to your workspace (Outdated!)

Add CurseMaven to your dependency repositories

repositories {
    maven {
        url = "https://www.cursemaven.com"
    }
}

Then add Server-Translations to your dependencies

dependencies {
    modCompile "curse.maven:server-translations:3045346"
}

Implementing new translation keys

Translation files path should looks this data/<modid>/lang/<language code>.json

Using new translation keys

Simply create a new TranslatableText using the key.

Useful methods

WIP

Clone this wiki locally