translate dependency injection