Skip to content

feat: 🎨 Improve output of translation key comparison#48

Merged
moodyjmz merged 2 commits intomainfrom
feat/improve-display-of-trans-keys
Apr 22, 2026
Merged

feat: 🎨 Improve output of translation key comparison#48
moodyjmz merged 2 commits intomainfrom
feat/improve-display-of-trans-keys

Conversation

@moodyjmz
Copy link
Copy Markdown
Member

@moodyjmz moodyjmz commented Apr 10, 2026

The translations add lot of bunk to the build output and not particularly useful, this tidies it up a bit and also highlights where most keys are missing

image

@moodyjmz moodyjmz self-assigned this Apr 10, 2026
Comment thread translation/merge_and_check.py Outdated
results = {}
files = [f for f in os.listdir(cwd) if os.path.isfile(os.path.join(cwd, f))]
for f in files:
if f != 'en.json' and f[-5:] == '.json':
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It took me a minute to understand this part. Why not utilize pathlib? eg:

Suggested change
if f != 'en.json' and f[-5:] == '.json':
lang = Path(f).stem
if lang != 'en' and Path(f).suffix == '.json':

@moodyjmz moodyjmz requested a review from Aiiaiiio April 22, 2026 15:44
@moodyjmz moodyjmz merged commit b5e0dde into main Apr 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants