[WIP] Added I18nMessageJsonParser
This commit is contained in:
parent
dc7a68ce3f
commit
af8ac81a18
|
@ -0,0 +1,24 @@
|
|||
package li.strolch.model.i18n;
|
||||
|
||||
import com.google.gson.JsonObject;
|
||||
import li.strolch.utils.I18nMessage;
|
||||
|
||||
public class I18nMessageJsonParser {
|
||||
|
||||
public static I18nMessage parse(JsonObject messageJ) {
|
||||
|
||||
// TODO
|
||||
|
||||
// String key = json.addProperty("key", message.getKey());
|
||||
// json.addProperty("message", message.getMessage());
|
||||
//
|
||||
// Properties values = message.getValues();
|
||||
// if (!values.isEmpty()) {
|
||||
// JsonObject valuesJ = new JsonObject();
|
||||
// values.stringPropertyNames().forEach(key -> valuesJ.addProperty(key, values.getProperty(key)));
|
||||
// json.add("values", valuesJ);
|
||||
// }
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue