On my TTT server whenever someone is in spectator mode and tries to press y to talk instead of getting the default message that is something along the lines of "You must use teamchat while you’re dead etc etc I get "[ERROR: Translation of spec_teamchat_hint not found]. I’m using Willox chat box if that’s any help.
Make sure your chatbox doesn’t call that language string.
Actually it does.
You can just delete that part of the code.
There are also some modifications you might wanna do like removing ‘(TEAM)’ as team chat gets redirected to all chat on spectators and innocents, whereas Detective/Traitor team chat is pretty obviously a team chat