Refactoring to use i18next and promises in exec command.