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
add i18n checker and autogenerated AI translations #2160
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #2160 +/- ##
==========================================
+ Coverage 60.44% 60.45% +0.01%
==========================================
Files 58 58
Lines 8464 8464
==========================================
+ Hits 5116 5117 +1
+ Misses 3348 3347 -1 ☔ View full report in Codecov by Sentry. |
prusnak
force-pushed
the
i18n-ai
branch
2 times, most recently
from
December 8, 2023 14:34
636b118
to
6547e91
Compare
prusnak
changed the title
add i18n autogenerated AI translations
add i18n checker and autogenerated AI translations
Dec 8, 2023
Closed
talvasconcelos
approved these changes
Dec 12, 2023
arcbtc
approved these changes
Dec 12, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is amazing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As discussed in #2122, I came up with an i18n checker scripts. As we can see from running it, there are many unmaintained language files with lots of missing and unused strings.
This PR adds the
tools/i18n-check.py
tool which is able to detect these unmaintained language files and it also adds another tooltools/i18n-ai-tool.py
which uses GPT-4 API to translate missing strings.This PR also contains several manual fixes as well as translations generated by the AI tool.