question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

returned an object instead of string

See original GitHub issue

Question 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

69reactions
jamuhlcommented, Apr 6, 2020

please at least read the docs or look at the examples…before guessing how it should work…

21reactions
adraicommented, Apr 6, 2020
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found