org.cthul.quarkus.dynamicmessages.cockpit.LokalizeProject Maven / Gradle / Ivy
The newest version!
package org.cthul.quarkus.dynamicmessages.cockpit;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.quarkus.runtime.annotations.RegisterForReflection;
import java.util.HashMap;
import java.util.Map;
@RegisterForReflection
public class LokalizeProject {
private Map keys;
private final Map> translations = new HashMap<>();
public void setKey(Map keys) {
this.keys = keys;
}
@JsonProperty("key")
public Map getKey() {
return keys;
}
@JsonAnySetter
public void setTranslations(String language, Map translations) {
this.translations.put(language, translations);
}
@JsonAnyGetter
public Map> getTranslations() {
return translations;
}
public record Key(String value) { }
}