Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Review Needed Request for review comments
Projects
None yet
Development

No branches or pull requests

1 participant