AddSliceContainer.jsx can't be translated by messages.json
See original GitHub issueA clear and concise description of what the bug is.
Expected results
AddSliceContainer.jsx can be translated
Actual results
All other pages can be translated correctly, except AddSliceContainer.jsx
cannot.
Screenshots
No.
How to reproduce the bug
I run a development flask and dev-server in my computer to test translation. I found that AddSliceContainer.jsx
can not be translated well, meanwhile other pages can be translated correctly.
Environment
- superset version:
0.35
and0.34
- python version:
3.7
- node.js version:
v10.16.0
- npm version:
6.9.0
Checklist
Make sure these boxes are checked before submitting your issue - thank you!
- I have checked the superset logs for python stacktraces and included it here as text if there are any.
- I have reproduced the issue with at least the latest released version of superset.
- I have checked the issue tracker for the same issue and I haven’t found one similar.
Additional context
No.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
AddSliceContainer.jsx can't be translated by messages.json
I run a development flask and dev-server in my computer to test translation. I found that AddSliceContainer.jsx can not be translated well, ...
Read more >react-i18next not loading json translation files in React app ...
I'm not sure where you put the locale files, but I see two issues: You have specified a relative URL so you load...
Read more >[incubator-superset] 07/08: Fixed korean translation error ...
This is an automated email from the ASF dual-hosted git repository. villebro pushed a commit to branch 0.34 in repository ...
Read more >How to translate your React app with react-intl / FormatJS
Tutorial with a complete example on react translations. ... This is not required for the en.json because these messages are already contained in...
Read more >How to Add Localization (l10n) to Your React App with react ...
You can add additional JSON files with the same keys and translated values for each desired language. Whatever language is set will determine ......
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 FreeTop 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
Top GitHub Comments
Finally found the cause of the problem~
superset/assets/src/preamble.js
superset must get document idapp
to set@superset-ui/translation
config. ButAddSliceContainer.jsx
replace idapp
tojs-add-slice-container
.superset/views/core.py
web response must containbootstrap_data.common
node, so thatsuperset/assets/src/preamble.js
can read translation messages.But
/chart/add
response data doesn’t have this node.We need to add this element like this:
If I can, I think I will take some time to fix this problem by a PR recently
It helps. Thanks!