Translator:Translate() throws an error: "Match expression missing parameter "player" used in replace expression"

I have a localization sample in my cloud localization dashboard: “{workerName} is the employee of the week for restocking {restocks} shelves in a row!” that translates as: “{workerName} становится работником недели за пополнение {restocks} полок подряд!”

Here’s a problem. When I’m trying to get translation sample via Translator:Translate(), it throws an error: Match expression missing parameter “player” used in replace expression. (Studio and LIVE servers)

Params Translator:Translate() is receiving:

  1. Context: TextLabel
  2. Text: {workerName} is the employee of the week for restocking {restocks} shelves in a row!

Problem is I don’t know why it is happening. I have those translation samples and they are not throwing error:

  1. Yes, {player}. But before you start doing your work, explore the shop so you know what’s where
  2. Hey, {localPlayerName}! Do you have any questions?

Expected behavior

“{workerName} is the employee of the week for restocking {restocks} shelves in a row!” should be translated into the: “{workerName} становится работником недели за пополнение {restocks} полок подряд!”, but instead I’m getting error every time

A private message is associated with this bug report

I fixed this error by messing with localization strings

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.