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
Description
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.