Vasyanator / google_translate_plus

google_translate extension improved by me and chatgpt for oobabooga/text-generation-webui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google translate plus

This is an extension for https://github.com/oobabooga/text-generation-webui.

This is an improved version of the https://github.com/oobabooga/text-generation-webui/tree/main/extensions/google_translate extension.

Functions

  • Preserves strings after translation by replacing \n with @ before translating the text and vice versa.
  • Some text fragment may not be translated if it is taken between special characters (default ~).
  • You can enable or disable translation of user input and AI output.

Developed with the aim to fix the following issues present in other translation extensions:

  • Does not return an error if the text is too large for the Google Translate API. This extension translates each paragraph separately.
  • Retains all paragraphs in the translated text. This extension translates each paragraph individually, and then merges them.

About

google_translate extension improved by me and chatgpt for oobabooga/text-generation-webui


Languages

Language:Python 100.0%