Sourcemod plugin to automatically translate messages in chat to target languages
  • SourcePawn 95.5%
  • TypeScript 3.5%
  • Dockerfile 0.4%
  • Shell 0.4%
  • Pawn 0.2%
Find a file
Jackz 1c19527af0
All checks were successful
/ Sourcemod v1.11.x (push) Successful in 20s
/ Sourcemod v1.12.x (push) Successful in 19s
/ Sourcemod v1.13.x (push) Successful in 18s
/ Create release for tags (push) Successful in 44s
Merge branch 'main' of ssh://git.jackz.me:222/jackz/sm-translate
2026-04-13 07:46:18 -05:00
.forgejo/workflows add system2 lib 2026-04-12 21:02:04 -05:00
scripting add multicolors, ripext, ripext 2026-04-13 07:46:09 -05:00
server Minor changes 2026-04-12 20:46:44 -05:00
.gitignore add multicolors, ripext, ripext 2026-04-13 07:46:09 -05:00
compile_all.sh ci: add missing file 2026-04-12 20:59:55 -05:00
README.md ADD README 2026-04-13 07:46:11 -05:00

SM Translate

Sourcemod plugin that automatically translates messages in chat to all users' target language. Translations are done with Google Cloud Translate v2. A system checks if translation is necessary before even calling the API for a reduction in token usage.

Setup

By default the sm_translate_api_path cvar points to http://localhost:5000/translate. You will need to run the translate server git.jackz.me/jackz/sm-translate:main

Translation server requires a Cloud Translation API Key. Recommend to limit key by IP address.

Commands

sm_t <lang> <msg> (or /t, !t) - translates message to target language

License

MIT License.