interpolate
fun String.interpolate(lookupMap: Map<String, Any>, prefix: String = DEFAULT_PLACEHOLDER_PREFIX, suffix: String = DEFAULT_PLACEHOLDER_SUFFIX): String
Sample template string: { "saveFamilyButtonText" : {{ family.button.save }} } Sample properties file content: family.button.save=Save Family
Return
String with the interpolated value. For the sample case above this would be: { "saveFamilyButtonText" : "Save Family" }
Parameters
lookupMap
The Map with the key value items to be used for interpolation
prefix
The prefix of the key variable to interpolate. In the above example it is {{. Default is @{
suffix
The prefix of the key/variable to interpolate. In the above example it is }}. Default is }