Skip to content

es-ES "prompt too long" shows literal {{mix}} (variable typo) #12097

Description

@owgreen-dev

A few locale files have placeholder problems that show up at runtime.

Typo'd placeholder (renders literally)

chat.errors.promptTooLong

  • en: Prompt is too long (max {{max}} characters)
  • es-ES: El mensaje es demasiado largo (máximo {{mix}} caracteres)

{{mix}} doesn't correspond to anything in the source string, so it never
interpolates. Spanish users see the literal text {{mix}} in the message.

Dropped placeholders (value silently lost)

These si-LK strings are missing placeholders present in the English source:

  • alerts.confirmAddLibrary is missing {{numShapes}}
  • errors.fileTooBig is missing {{maxSize}}
  • errorSplash.trackedToSentry is missing {{eventId}}

These don't render anything broken, they just lose the number, size, or event
ID the sentence exists to communicate.

Notes

Found these by running an open-source i18n checker over the locale files.
Since translations are Crowdin-managed, the fixes probably belong there rather
than in a PR against this repo, so flagging here instead of sending a patch.
Happy to open one if you'd prefer the files corrected directly.

Might also be worth a placeholder-parity check in CI between en.json and the
translated files. This class of bug is invisible until someone reports a
rendered string.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions