chore: Remove Unused Lang Translations - Recreate PR (#21893)#22587
Merged
Vad1mo merged 2 commits intogoharbor:mainfrom Dec 1, 2025
Merged
chore: Remove Unused Lang Translations - Recreate PR (#21893)#22587Vad1mo merged 2 commits intogoharbor:mainfrom
Vad1mo merged 2 commits intogoharbor:mainfrom
Conversation
Signed-off-by: carsontham <carsontham@outlook.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #22587 +/- ##
===========================================
+ Coverage 45.36% 65.85% +20.48%
===========================================
Files 244 1073 +829
Lines 13333 116095 +102762
Branches 2719 2931 +212
===========================================
+ Hits 6049 76456 +70407
- Misses 6983 35400 +28417
- Partials 301 4239 +3938
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Vad1mo
approved these changes
Nov 24, 2025
vg006
pushed a commit
to vg006/harbor
that referenced
this pull request
Dec 4, 2025
…goharbor#22587) removed unused lang translation Signed-off-by: carsontham <carsontham@outlook.com> Co-authored-by: carsontham <carsontham@outlook.com>
This was referenced Jan 9, 2026
bupd
added a commit
to bupd/harbor
that referenced
this pull request
Jan 9, 2026
Translates the wrongly removed i18n keys that were restored in the previous commit from English placeholders to their native languages: - de-de: German translations - es-es: Spanish translations - fr-fr: French translations - ko-kr: Korean translations - pt-br: Brazilian Portuguese translations - ru-ru: Russian translations - tr-tr: Turkish translations - zh-cn: Simplified Chinese translations - zh-tw: Traditional Chinese translations Ref: goharbor#22587 Signed-off-by: bupd <bupdprasanth@gmail.com>
intojhanurag
pushed a commit
to intojhanurag/harbor
that referenced
this pull request
Jan 22, 2026
…goharbor#22587) removed unused lang translation Signed-off-by: carsontham <carsontham@outlook.com> Co-authored-by: carsontham <carsontham@outlook.com>
wy65701436
pushed a commit
that referenced
this pull request
Jan 22, 2026
* feat(portal): add i18n missing keys detection script Signed-off-by: bupd <bupdprasanth@gmail.com> * fix(portal): restore wrongly removed i18n translation keys Signed-off-by: bupd <bupdprasanth@gmail.com> * fix(portal): translate restored i18n keys to native languages Translates the wrongly removed i18n keys that were restored in the previous commit from English placeholders to their native languages: - de-de: German translations - es-es: Spanish translations - fr-fr: French translations - ko-kr: Korean translations - pt-br: Brazilian Portuguese translations - ru-ru: Russian translations - tr-tr: Turkish translations - zh-cn: Simplified Chinese translations - zh-tw: Traditional Chinese translations Ref: #22587 Signed-off-by: bupd <bupdprasanth@gmail.com> * ci(portal): add i18n missing keys check to UI unit tests Adds the i18n missing keys detection script to the UI_UT CI workflow. This ensures that PRs introducing translation key usage will fail CI if the corresponding keys are not defined in the language files. The check runs early in the pipeline to fail fast before lint and tests. Signed-off-by: bupd <bupdprasanth@gmail.com> * fix(portal): enhance i18n check to verify all language files The script now checks two things: 1. Keys used in code exist in en-us-lang.json 2. All language files have the same keys as en-us This catches missing translations across all supported languages, not just the English source file. Signed-off-by: bupd <bupdprasanth@gmail.com> * fix(portal): add missing i18n translation keys to all language files Synced missing translation keys across de-de, es-es, fr-fr, ko-kr, pt-br, tr-tr, zh-cn, and zh-tw language files to match en-us-lang.json. All translations are in their native languages. ru-ru is excluded as it requires a separate effort (see issue #22721). Signed-off-by: bupd <bupdprasanth@gmail.com> * fix(portal): detect single-word i18n keys in missing keys script Updated find-missing-i18n.js to also detect single-word translation keys like {{ 'CANCEL' | translate }} in addition to dotted keys like {{ 'BUTTON.CANCEL' | translate }}. Signed-off-by: bupd <bupdprasanth@gmail.com> * fix: invalid zh-cn-lang.json - missing comma, - unescaped " " Signed-off-by: bupd <bupdprasanth@gmail.com> * make ci pass Signed-off-by: bupd <bupdprasanth@gmail.com> --------- Signed-off-by: bupd <bupdprasanth@gmail.com> Co-authored-by: Daniel Jiang <daniel.jiang@broadcom.com> Co-authored-by: Wang Yan <wangyan@vmware.com>
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
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.
Description from PR #21893
Removed unused lang translation identified in #21725.
Created a script to remove the identified keys, and ran it in the i18n/lang directory: https://pastebin.com/em9MVQXR
Fixes #21725
This is just a cleanup/chore .
This PR does not create any new features nor delete one.
Only Removes unused lang translations.
Please indicate you've done the following: