Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

Keys containing 'toString' may have surprising results #1708

Open
@alxndrsn

Description

@alxndrsn

Reporting a bug?

  • $te('foo.bar.toString') returns true when foo.bar messages does not contain a key toString
  • $t('foo.bar.toString') returns Object.prototype.toString when foo.bar messages does not contain a key toString

Expected behavior

  • $te('foo.bar.toString') should return false when foo.bar messages does not contain a key toString
  • $t('foo.bar.toString') should return 'foo.bar.toString' when foo.bar messages does not contain a key toString

Reproduction

#1707

System Info

N/A

Screenshot

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions