returned an object instead of string
See original GitHub issueQuestion about react-i18next
en.js
export default {
message: {
copyright: '2019 - Designed and developed by Linxu'
}
}
{t('message')}
{t('message.copyright')}
How to get the value of an object?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
i18next plurals using count returned an object instead of string
I get the error Results in key 'generic.rule-group (en)' returned an object instead of string. Thanks in advance. resources.json
Read more >Web view home page shows "returned an object instead of ...
Where is this from? Someone says here a dot may be defined as a separator - but we have dots at several i18n...
Read more >Objects and Arrays - i18next documentation
You can return objects or arrays to be used by third party modules localization: · keys · sample · The returned value supports...
Read more >[object, object] in JavaScript – Meaning in JS - freeCodeCamp
To fix this, you can use the JSON.stringify() method to change the object into a string that can be popped up in the...
Read more >Object.prototype.toString() - JavaScript - MDN Web Docs
The toString() function you create should return a string value. If it returns an object and the method is called implicitly during type ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
please at least read the docs or look at the examples…before guessing how it should work…
use returnObjects in the options: https://www.i18next.com/translation-function/essentials#overview-options