A .NET global tool for synchronizing, minifying, and automatically translating YetAnotherForum.NET JSON language files.
It keeps every *.json language file in a folder in sync with english.json — adding missing pages/resources, removing resources that no longer exist in the source, and optionally auto-translating new or untouched strings via Google Translate.
- .NET 10 SDK or later (runtime is enough to run the tool once installed)
Install as a global .NET tool:
dotnet tool install -g YAFNET.LanguageManagerUpdate to the latest version:
dotnet tool update -g YAFNET.LanguageManagerUninstall:
dotnet tool uninstall -g YAFNET.LanguageManagerThe tool is installed as yaf-langmgr.
yaf-langmgr <pathToLanguageFiles> [options]The target folder must contain english.json (the source of truth) alongside the other <language>.json files to keep in sync.
| Argument | Description |
|---|---|
pathToLanguageFiles |
Path to the folder containing english.json and the other language files. Relative paths are resolved against the current directory. |
| Option | Description |
|---|---|
-sync |
Synchronize all language files against english.json: adds missing pages/resources (auto-translating new strings) and removes resources that no longer exist in the source. |
-translateGoogle |
Auto-translate resources whose text still matches the English source, using the free Google Translate endpoint. |
-minify |
Minify all language files (compact JSON, no indentation). |
-uglify |
Un-minify all language files (pretty-printed, indented JSON). |
-help, -? |
Show usage help. |
Synchronize all language files in a folder with english.json, translating any new strings:
yaf-langmgr C:\YAF\Languages -syncSynchronize and machine-translate any strings still left in English:
yaf-langmgr C:\YAF\Languages -sync -translateGoogleMinify all language files before shipping a release:
yaf-langmgr C:\YAF\Languages -minifyPretty-print previously minified language files for editing:
yaf-langmgr C:\YAF\Languages -uglifyYAFNET.LanguageManager is licensed under the Apache 2.0 license.
If you have any questions, please visit the YAF Community Support forum: https://forum.yetanotherforum.net, or visit the Wiki for More Informations.