Skip to content

DeepL: added Glossary and HTML functionality / ImageSharp: Vulnerability and Background fixes#93

Closed
thornch wants to merge 10 commits into
Squidex:mainfrom
thornch:main
Closed

DeepL: added Glossary and HTML functionality / ImageSharp: Vulnerability and Background fixes#93
thornch wants to merge 10 commits into
Squidex:mainfrom
thornch:main

Conversation

@thornch

@thornch thornch commented Mar 31, 2025

Copy link
Copy Markdown
Contributor

DeepL: Added Parameter tag_handling and glossary_id defined by application.config:

  • "translations.deepl.tagHandling": "html" // ability for translate HTML-Content (from Richtext-Editors)
  • "translations.deepl.glossaryById": "{client-GUID-of-glossary}" // glossary lookup for specific translations
  • "translations.deepl.glossaryByName": "{client-NAME-of-glossary}" // lookup glossary-id by glossary-name before translation

DeepL-Glossary: in case the glossary will update frequently, the glossary-id will change on every update. For keep the glossar functionality on updates, keep the glossary-name the same on each update and define the name instead of id. The lookup will take the first glossary in case the name existing more than once.

ImageSharp: Updated library Version and fixed missing background color:

  • Updated SixLabors/ImageSharp from 3.1.5 to 3.1.7 - see GHSA-2cmq-823j-5qj8 for more details
  • Added fix for background color - the background-parameter had no effect because pan-color was missing

Comment thread text/Squidex.Text/Translations/DeepL/DeepLTranslationService.cs
Comment thread text/Squidex.Text/Translations/DeepL/DeepLTranslationService.cs
Comment thread text/Squidex.Text/Translations/DeepL/DeepLTranslationService.cs
Comment thread assets/Squidex.Assets.ImageSharp/ImageSharpThumbnailGenerator.cs
Comment thread assets/Squidex.Assets.ImageSharp/ImageSharpThumbnailGenerator.cs
Comment thread text/Squidex.Text/Translations/DeepL/DeepLTranslationService.cs
Comment thread text/Squidex.Text/Translations/DeepL/DeepLTranslationOptions.cs
@SebastianStehle

Copy link
Copy Markdown
Contributor

Close due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants