BrickI18n icon

BrickI18n

An api wrapper that makes localization easier than ever.

Created:
6 months ago
Updated:
55 years ago

An api wrapper that makes localization easier than ever.

Gradle

repositories {
    maven { url "https://repo.jorisg.com/snapshots" }
}

dependencies { compileOnly 'com.guflimc.brick.i18n:spigot-api:+' }

Javadocs

You can find the javadocs for all platforms here

Examples

void onEnable() {
    // initialize
    SpigotTranslator translator = new SpigotTranslator(this, Locale.ENGLISH);
    translator.importTranslations(this);
    translator.importTranslations(otherJavaPlugin);

    // send message
    translator.send(player, "welcome", sender.getName());
}
 

resources/languages/en.json

{
    "welcome": "Welcome to the server {0}!"
}

More information

Check out the documentation for more information.