LocaleDeserializer

@Since(version = "2.2")
object LocaleDeserializer : JsonDeserializer<UELocale?>

This is the deserializer that is used on UnderscoreEnchants' locales. All messages are registered reflectively.

Functions

Link copied to clipboard
open override fun deserialize(src: JsonElement?, type: Type?, ctx: JsonDeserializationContext?): UELocale?
Link copied to clipboard
@Since(version = "2.2")
fun iterateObject(initialLocale: UELocale, json: JsonObject): MutableMap<Field, String>

Iterates through a json object, modifies the initialLocale accordingly and returns the new locale. This iteration is deep, which means that upon encountering another JSON object, this function will call itself on that object.