add translate method for container to get transpiled code