redash
redash copied to clipboard
add i18n support
What type of PR is this?
- [ ] Refactor
- [x] Feature
- [ ] Bug Fix
- [ ] New Query Runner (Data Source)
- [ ] New Alert Destination
- [ ] Other
Description
How is this tested?
- [ ] Unit tests (pytest, jest)
- [ ] E2E Tests (Cypress)
- [ ] Manually
- [ ] N/A
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings (if there are UI changes)
I add i18n module but i need help to translate English, Chinese and French so on. So i need help language json file.
If someone support language file, the language pack switching function on the UI should be added later, and the js-cookie package should be used to record the language pack used last time.
I can translate to Portuguese :) Is it gonna be possible to integrate to services like https://hosted.weblate.org/projects/nekox/#languages?
I can translate to Portuguese :) Is it gonna be possible to integrate to services like https://hosted.weblate.org/projects/nekox/#languages?
Yes
Btw @gaecoli how are you doing the string extraction? Is it manually in this PR for now and still needs to be configured?
Btw @gaecoli how are you doing the string extraction? Is it manually in this PR for now and still needs to be configured?
There is no good idea for this, for me it can only be added manually.
There is no good idea for this, for me it can only be added manually.
Sure, adding something like https://www.i18next.com/how-to/extracting-translations#2-using-an-extraction-tool to either automate the English strings extraction, or to have yarn i18n:extract
and yarn i18n:check
scripts (the later to be executed on CI)
I haven't used react-i18next
myself, so I don't really know if that's required
@gabrieldutra Hello, I would like to ask, what should I do after I modify the source code, so that I can achieve the same code style as the original? Which front-end commands should I run?
I could help translating to Chinese. How could I contribute? Another open source project Sentry (https://github.com/getsentry/sentry) also written in Python & React uses transifex (https://explore.transifex.com/getsentry/sentry/) to translate.
@gaecoli hey, any interest in continuing this PR? I think we need to split zh.json
into the simplified/traditional Chinese format, as well as disabling i18n by default for now until we have more translations in (which we should open a separate issue for, I think).
We also need to merge master
in + resolve conflicts in the yarn lock file.