Skip to content

Trans doesn't call parseMissingKeyHandler #1354

Closed
@igorsantos07

Description

@igorsantos07

🐛 Bug Report

Common t() calls with missing keys go through parseMissingKeyHandler if that's defined, but Trans doesn't, what feels like inconsistent/unexpected behavior.

To Reproduce

I created a single sandbox for multiple issues I'm reporting, so it's a bit bigger than expected, sorry :)

Expected behavior

Trans should also go through parseMissingKeyHandler? Or should it go somewhere else? I tried the missingInterpolationHandler, to no avail as well.

Your Environment

  • runtime version: React 17, Chrome 91
  • i18next version: 20.3.5 (installed last week?)
  • react-i18next version: 11.11.4
  • os: Linux

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