Skip to content

Latest commit

 

History

73 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supervertaler Plugin Core

Not to be confused with the private supervertaler-core repo, which is the Qt-free Python core shared by Supervertaler Workbench and Otto. This one is the .NET code shared by the two CAT-tool plugins.

Code shared by Supervertaler for Trados and Supervertaler for memoQ.

Both are CAT-tool plugins loaded into someone else's process, so this is compiled into each plugin as source, not shipped as a DLL. Every extra assembly in a plugin folder is another thing to package correctly and another chance of an assembly-resolution conflict — a problem the Trados plugin has already paid for once, with SQLite.

What is here

LlmClient Anthropic, OpenAI, Google, and OpenAI-compatible endpoints. Translation, chat, tool use, usage accounting.
LlmModels Model catalogue and provider constants.
PricingTable Per-model prices, overridable by a pricing.json in the shared data folder.
TokenEstimator Token counts and cost estimates before a call is made.
ChatMessage, PromptLogEntry Conversation and audit types.
AiApiKeys Per-provider keys, as stored in a plugin's settings.
SupervertalerPaths The one folder every Supervertaler product shares.

Deliberately UI-free and CAT-tool-free: nothing here references WinForms, Sdl.* or MemoQ.*. That is the boundary — if a change to this repo needs one of those, it belongs in a plugin instead.

Using it

Added to each plugin repo as a submodule at core/, then imported:

<Import Project="..\..\core\Supervertaler.Core.props" />

The props file adds core/src/**/*.cs to the compilation and the framework references the shared code needs.

Building on its own

dotnet build build/Supervertaler.Core.Build.csproj

Not a shipping artefact — nothing consumes its output. It exists so a compile error surfaces here in one line rather than halfway through a plugin build.

Licence

Copyright © 2026 Michael Beijer. Source-available, not open source: see LICENSE.

About

The .NET code shared by Supervertaler for Trados and Supervertaler for memoQ: LLM client, model catalogue, pricing, token estimation. Compiled into each plugin as source.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages