configure translator in onBootstrap function.