Hoshi could struggle to translate an impossible language and succeed. Or her usefulness to the episode could be that Edgar Alien Perv has a crush on her. Telling everyone in the ship what’s going on is always useful. There are plenty of scenes in LDS where there’s a red alert and nobody knows what to do about it. That’s why TOS had Uhura