You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simply look at the in the main page.
Expected behavior
I wanna see the text or the translated text, not an object.
Actual behavior
inside a HTML renders an Object.
Your environment
Public source code: https://github.com/luisamor/docusaurus-options-issue
Public site URL: https://stackblitz.com/edit/github-zuuia5-wgx6mj?file=src/pages/index.js
Docusaurus version used: 2.1.0
Environment name and version (e.g. Chrome 89, Node.js 16.4): Chrome 105.0.5195.125 & node >=16.14
Operating system and version (e.g. Ubuntu 20.04.2 LTS): macOS Monterey 12.2.1
Self-service
[X] I'd be willing to fix this bug myself.
The text was updated successfully, but these errors were encountered:
Use the one that better fits the context semantically. For example, the <Translate> can be used as React children, while for props that expect a string, the callback can be used.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Hi!
I need translate some select
<options>
with the component. For example:This renders an [object Object] string
This is a fork from https://docusaurus.new --> https://github.com/luisamor/docusaurus-options-issue
And you can test it in:
https://stackblitz.com/edit/github-zuuia5-wgx6mj?file=src/pages/index.js
Reproducible demo
https://stackblitz.com/edit/github-zuuia5-wgx6mj?file=src/pages/index.js
Steps to reproduce
Simply look at the in the main page. Expected behavior I wanna see the text or the translated text, not an object. Actual behavior inside a HTML renders an Object. Your environment Public source code: https://github.com/luisamor/docusaurus-options-issue Public site URL: https://stackblitz.com/edit/github-zuuia5-wgx6mj?file=src/pages/index.js Docusaurus version used: 2.1.0 Environment name and version (e.g. Chrome 89, Node.js 16.4): Chrome 105.0.5195.125 & node >=16.14 Operating system and version (e.g. Ubuntu 20.04.2 LTS): macOS Monterey 12.2.1 Self-service [X] I'd be willing to fix this bug myself.
The text was updated successfully, but these errors were encountered: