'translate using the schema type'

def translated(self, value, type):

    if (value is not None):
        resolved = type.resolve()
        return resolved.translate(value)
    else:
        return value
