apache-superset / superset-ui

Apache Superset UI packages
https://apache-superset.github.io/superset-ui/
Apache License 2.0
329 stars 273 forks source link

The @superset-ui many modules are missing I18N files #765

Closed toop closed 4 years ago

toop commented 4 years ago

Expected results

When you click the language button, the text on the Explore page switches to the current language。 example: “Predictive Analytics” -->" 预测分析" "ENABLE FORECAST" --> "启用预测" "FORECAST PERIODS" --> "预测期间"

Actual results

There was no change。

Screenshots

image

How to reproduce the bug

Login superset Go to Explore page Click the switch language button See error

Environment

superset version: master python version: 3.7.7 node.js version: 12.16.2 npm version: 6.14.4

Additional context

The Explore page·s word in file superset-frontend\node_modules\@superset-ui...

label: (0, _translation.t)('Left Axis chart(s)'),

label: (0, _translation.t)('X Axis'),

label: (0, _translation.t)('Y Axis 2'),

label: (0, _translation.t)('Right Axis chart(s)'),

......

but fab babel-extract not generated to file messages.po,How to build the i18n.ts or i18n.js ? help pls!Thanks!

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.96. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

junlincc commented 4 years ago

🏷localization

willbarrett commented 4 years ago

@rusackas do you have insight on how i18n builds work here?

toop commented 4 years ago

l writed i18n.js like the examples,it·s worked。