Keys containing 'toString' may have surprising results
alxndrsn opened this issue · comments
Alex Anderson commented
Reporting a bug?
$te('foo.bar.toString')
returnstrue
whenfoo.bar
messages does not contain a keytoString
$t('foo.bar.toString')
returnsObject.prototype.toString
whenfoo.bar
messages does not contain a keytoString
Expected behavior
$te('foo.bar.toString')
should returnfalse
whenfoo.bar
messages does not contain a keytoString
$t('foo.bar.toString')
should return'foo.bar.toString'
whenfoo.bar
messages does not contain a keytoString
Reproduction
System Info
N/A
Screenshot
No response
Additional context
No response
Validations
- Read the Contributing Guidelines
- Read the Documentation
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion
- The provided reproduction is a minimal reproducible example of the bug.