-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix: reduce excessive MISSING_TRANSLATION warnings for fallback locales #9294
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
Merged
+20
−1
Merged
Changes from 4 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
b5b945f
silence MISSING_TRANSLATION warnings for fallback locales
lifeizhou-ap eb2c2bf
fixed typecheck
lifeizhou-ap d58242c
fixed tests
lifeizhou-ap 1218484
address comments
lifeizhou-ap 27bc22a
Revert "address comments"
lifeizhou-ap a31ff32
Revert "fixed tests"
lifeizhou-ap f052b9a
Revert "fixed typecheck"
lifeizhou-ap e63d60f
Revert "silence MISSING_TRANSLATION warnings for fallback locales"
lifeizhou-ap 1111aab
Merge branch 'main' into lifei/remove-default-lan-error
lifeizhou-ap f1032c1
suppressed excessive warning
lifeizhou-ap File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
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.
Merging
englishMessagesinto every non-English catalog causes untranslated keys to resolve fromsrc/i18n/compiled/en.jsoninstead of React Intl’s in-codedefaultMessage, so copy can become stale whendefaultMessagetext changes buti18n:extracthas not been rerun. In this repo,ui/desktop/package.jsonshows common startup paths (start-gui) runi18n:compilebut noti18n:extract, so existing IDs with updateddefaultMessagewill display outdated English text for partially translated locales (for examplezh-CN) without any warning. Fresh evidence: the new merge at these lines applies that compiled-English fallback to all non-English locales, not justen.Useful? React with 👍 / 👎.
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.
i18n:checkre-extracts messages and fails ifen.jsonis stale, so CI should catch this. The English fallback is intentional to avoid missing-translation noise