- C# 99.6%
- Nix 0.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .claude | ||
| .forgejo/workflows | ||
| .skills/ck3-translation-mod-spec | ||
| CK3TranslationTool.Core | ||
| CK3TranslationTool.Core.Tests | ||
| CK3TranslationTool.Formats | ||
| CK3TranslationTool.Formats.Tests | ||
| CK3TranslationTool.TestSupport | ||
| CK3TranslationTool.Tui | ||
| CK3TranslationTool.Tui.Tests | ||
| docs | ||
| nix | ||
| .editorconfig | ||
| .gitignore | ||
| AGENTS.md | ||
| CK3TranslationTool.slnx | ||
| CLAUDE.md | ||
| Directory.Build.props | ||
| Directory.Packages.props | ||
| flake.lock | ||
| flake.nix | ||
| global.json | ||
| LICENSE | ||
| OVERVIEW.gif | ||
| README.md | ||
| renovate.json | ||
CK3TranslationTool
CK3TranslationTool (ck3-tt) is a terminal interface for translating Crusader Kings III mods.
A translation project is a folder, which you can version with Git. It holds the manifest ck3-tt.yml, one
translation file per localization file of the source mod, and the words you add to the spelling. You translate in the
tool, then build a translated mod from the folder. The source mod stays outside the project, in the Steam Workshop or
another folder.
The project is in early development.
Features
- Create a project from a source mod, with one YAML translation file per source file, shared by all target languages.
- Update to a new version of the source mod, from the local Steam Workshop or a folder: moved keys keep their
translations, changed originals become
outdatedin every language. - Translate entry by entry, with a status and a note per language, and the CK3 tags of the original colored and ready to insert.
- Search the keys, originals and translations of the whole project, with plain text or a glob.
- Import the translations a mod already ships, from the source mod or an older translation, into the entries nobody translated yet.
- Look up and fill translations from the project, the base game and ESP-ESM Translator dictionaries, one entry at a
time or the whole project with
:auto. - Check the spelling with Hunspell dictionaries, and keep the words of the project in a versioned file.
- Review the entries that wait for a second reading, one key per decision.
- Report on progress and on common mistakes, such as lost tags or untranslated text.
- Build the translated mod: localization files in UTF-8 with BOM,
descriptor.modand.modfile. - Translation files keep clean diffs, so several people can work through Git.
Type :help or ? in the tool for the commands and keys.
Documentation
The book in docs/ holds a user guide and the developer reference. Read it with mdbook serve docs, or start from
the sources:
- Getting started: install, create a project, build and load the mod.
- Translating, Dictionaries and DeepL and Reviewing and checking.
- Importing existing translations and Updating the source mod.
- Commands and keys and Command line.
- Working with Git and Limitations.
- Contributing and Architecture.
Running
The repository has a Nix flake. From the repository root:
nix run . -- my-project
Without Nix, install the .NET 10 SDK and run:
dotnet run --project CK3TranslationTool.Tui -- my-project
ck3-tt opens the current directory when you name no folder, and offers to create a project when the folder isn't one.
--help lists the options: the theme, the accent color and the additional dictionaries.
On Linux, copy and paste need xclip. nix run and nix develop provide it.
Building
nix develop # .NET 10 SDK, clang, xclip and mdbook
dotnet build
dotnet test
dotnet publish CK3TranslationTool.Tui -c Release -o publish
The published executable is publish/ck3-tt. Keep it next to libonigwrap.so, and link it from a folder on your
PATH. Getting started has the details.
nix build builds the same binary in result/bin/ck3-tt.
License
The tool is licensed under the GNU Affero General Public License v3.0 only. See LICENSE.
