Created a custom processor to execute translation during publish process:
<processor type="Sitecore.Publishing.Pipelines.PublishItem.CheckSecurity, Sitecore.Kernel"
<processor type="Feature.Translation.Commands.TranslateOnPublish,Banner.Feature.Translation"
<processor type="Sitecore.Publishing.Pipelines.PublishItem.DetermineAction, Sitecore.Kernel"
while working on the class which is inheriting PublishItemProcessor is returning the value of Sitecore.Context.Database null.