danoan.word_guru.cli.commands.translate module

danoan.word_guru.cli.commands.translate.extend_parser(subcommand_action=None)[source]
danoan.word_guru.cli.commands.translate.get_translation(openai_key: str, cache_path: str | None, word: str, from_language: str, to_language: str, *args, **kwargs)[source]

Translate text.

Parameters:
  • openai_key (str)

  • cache_path (str | None)

  • word (str)

  • from_language (str)

  • to_language (str)