Skip to content

Adding DeepL Glossary configuration#488

Open
FreakIsTea wants to merge 2 commits intomirego:masterfrom
keeValue:feature/deepl
Open

Adding DeepL Glossary configuration#488
FreakIsTea wants to merge 2 commits intomirego:masterfrom
keeValue:feature/deepl

Conversation

@FreakIsTea
Copy link
Copy Markdown

I added a config parameter DEEPL_GLOSSARY_MAP to support the glossary feature from DeepL. The Glossary map can be configured

  • as JSON: {"<source_lang>-><target_lang>": "<glossary_id>"} => {"DE->EN": "188fdbec-da44-45be-969d-4d848b76383d", "DE->IT": "188fdbec-da44-45be-969d-4d848b76383d"}
  • or string: "[source_lang]->[target_lang]:[glossary_id],..." => "DE->EN:188fdbec-da44-45be-969d-4d848b76383d,DE->IT:6f9c037f-0a5d-440e-94d5-2235586939be"

I tried making minimal changes, and it won't mess with current configurations of accent. This is also part of changes I made to our custom fork of accent, which I'd like to give back to the main project. More PRs to come 😉

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.

1 participant