# Source code
source: package: co.aikar.commands, class: SpongeLocales

    001package co.aikar.commands;
    002
    003import java.util.Locale;
    004
    005public class SpongeLocales extends Locales{
    006    private final SpongeCommandManager manager;
    007
    008    public SpongeLocales(SpongeCommandManager manager) {
    009        super(manager);
    010        this.manager = manager;
    011        this.addBundleClassLoader(this.manager.getPlugin().getClass().getClassLoader());
    012    }
    013
    014    @Override
    015    public void loadLanguages() {
    016        super.loadLanguages();
    017        String pluginName = "acf-" + manager.plugin.getName();
    018        addMessageBundles("acf-minecraft", pluginName, pluginName.toLowerCase(Locale.ENGLISH));
    019    }
    020}