de.firemage.autograder.core.LocalizedMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of autograder-core Show documentation
Show all versions of autograder-core Show documentation
Core checks of the autograder
package de.firemage.autograder.core;
import de.firemage.autograder.api.Translatable;
import fluent.bundle.FluentBundle;
import java.util.Map;
public record LocalizedMessage(String key, Map parameters) implements Translatable {
public LocalizedMessage(String key) {
this(key, Map.of());
}
@Override
public String format(FluentBundle bundle) {
return bundle.format(this.key, this.parameters);
}
}