You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[AI Translation] Support the glossary feature on providers other than DeepL #129
When using a model such as ChatGPT, currently it's impossible to add a glossary for translation, or else it must be added directly in the prompt, which makes things less obvious for non-developers.
Would it be possible to add an option that would allow the plugin to be linked to a glossary model for instance?
The idea would be to have a model with this kind of schema:
Word (Single line string):
Required? Yes
Enable localization on this field? Yes
That very naive but code wise, it could look like that:
if (glossary.length > 0) {
prompt = `${prompt}\n\nGLOSSARY\nUse the following glossary of terms for translation: ${glossary.reduce((accumulator, { word }) => `${accumulator}\n- ${fromLocale}: ${word[fromLocale]}, ${toLocale}: ${word[toLocale]}`, '')}.`
}
Assuming that the glossary variable is the content from the model (I don't know how to retrieve it plugin wise).
Otherwise, the plugin is already super nice, congratulation.
For now this is only available on DeepL because for LLM translation flows, injecting the glossary on every prompt can make token consumption skyrocket very quickly, as it would imply not only passing the value to be translated on every request, but also the full glossary as well.
I'll leave this open in case we find some solution to also include glossaries in the future for the LLM translation options.
Activity
marcelofinamorvieira commentedon Mar 2, 2026
Hey @clem-zezuka thank you for the feedback!
For now this is only available on DeepL because for LLM translation flows, injecting the glossary on every prompt can make token consumption skyrocket very quickly, as it would imply not only passing the value to be translated on every request, but also the full glossary as well.
I'll leave this open in case we find some solution to also include glossaries in the future for the LLM translation options.