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

Keys containing 'toString' may have surprising results #1708

Open
5 tasks done
alxndrsn opened this issue May 3, 2024 · 0 comments
Open
5 tasks done

Keys containing 'toString' may have surprising results #1708

alxndrsn opened this issue May 3, 2024 · 0 comments
Labels
Status: Review Needed Request for review comments

Comments

@alxndrsn
Copy link

alxndrsn commented May 3, 2024

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Status: Review Needed Request for review comments
Projects
None yet
Development

No branches or pull requests

1 participant