text: """Translator module."""
  import os
  from dotenv import load_dotenv
  
  from ibm_watson import LanguageTranslatorV3
  from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
  
  load_dotenv()
  
  apikey = os.environ['apikey']
  url = os.environ['url']
  
  authenticator = IAMAuthenticator(f"{apikey}")
  language_translator = LanguageTranslatorV3(
      version='2018-05-01',
      authenticator=authenticator
  )
  
  language_translator.set_service_url(f"{url}")
  
  def englishToFrench(english_text):
      """Function coverts english text to french."""
      french_text = language_translator.translate(
          text=f"{english_text}",
          model_id='en-fr'
      ).get_result()["translations"][0]["translation"]
      return french_text
  
  def frenchToEnglish(french_text):
      """Function coverts french text to english."""
  
      english_text = language_translator.translate(
          text=f"{french_text}",
          model_id='fr-en'
      ).get_result()["translations"][0]["translation"]
      return english_text
  