Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plural forms are not compiled from .tsx files to messages.pot for translation #21701

Closed
2 of 3 tasks
AndVK opened this issue Oct 5, 2022 · 1 comment · Fixed by #22507
Closed
2 of 3 tasks

Plural forms are not compiled from .tsx files to messages.pot for translation #21701

AndVK opened this issue Oct 5, 2022 · 1 comment · Fixed by #22507
Labels
#bug Bug report

Comments

@AndVK
Copy link
Contributor

AndVK commented Oct 5, 2022

A clear and concise description of what the bug is.

How to reproduce the bug

  1. There is a file(example):
/superset-frontend/src/components/ErrorMessage/DatabaseErrorMessage.tsx

image
2. Run the following command

pybabel extract -F superset/translations/babel.cfg -o superset/translations/messages.pot -k _ -k __ -k t -k tn -k tct .

Expected results

message.pot file contains the following lines
photo_2022-10-05_14-04-32

Actual results

message.pot file is missing the following lines
photo_2022-10-05_14-04-35

Environment

  • browser type and version: Google Chrome 98.0.4758.102
  • superset version: v2.0.0rc2
  • python version: Python 3.10.0
  • node.js version: v16.15.1

Checklist

Make sure to follow these steps 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

Plure forms from .py files are exported correctly

@AndVK AndVK added the #bug Bug report label Oct 5, 2022
@AndVK
Copy link
Contributor Author

AndVK commented Oct 13, 2022

Must be compiled with the command pybabel extract -F superset/translations/babel.cfg -o superset/translations/messages.pot -k _ -k __ -k t -k tn:1,2 -k tct .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug Bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant