-
Notifications
You must be signed in to change notification settings - Fork 14
fix: add/fix missing translations #7594
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
fix: add/fix missing translations #7594
Conversation
…translated-labels-buttons' into danchae/eng-1293-untranslated-labels-buttons
…ted-labels-buttons
…ipuren/nes-311-untranslated-labels-buttons
|
|
WalkthroughLocalization updates across admin UI: added/adjusted t(...) usage, corrected labels, and updated English locale resources. Fixed “Deuteronomy 10:11” typos in code and tests. Minor UI tweak removed a fixed button width. Added null-safe parentOrder in new image creation. Adjusted tests to match updated UI text. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Pre-merge checks (2 passed, 3 warnings)❌ Failed checks (3 warnings)
✅ Passed checks (2 passed)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit 1a42470
☁️ Nx Cloud last updated this comment at |
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.
Actionable comments posted: 0
♻️ Duplicate comments (1)
apps/journeys-admin/src/components/Editor/Slider/Settings/CanvasDetails/AddBlock/NewImageButton/NewImageButton.tsx (1)
53-53: Nice null-safe parentOrder fix.Using optional chaining prevents the crash when children is undefined and keeps optimistic ordering correct.
🧹 Nitpick comments (1)
apps/journeys-admin/src/components/Editor/Slider/Settings/CanvasDetails/AddBlock/NewImageButton/NewImageButton.tsx (1)
55-55: Don’t persist a placeholder as alt text (a11y).Persisting t('Default Image Icon') risks shipping that string if editors don’t edit the alt. Prefer creating the block with an empty alt and show the translated placeholder only in the UI.
Suggested change:
- alt: t('Default Image Icon'), + alt: '',
- If backend requires non-empty alt, fallback to t('Image') instead of “Default Image Icon”.
- Re: your PR questions:
- Long keys: stay consistent with existing natural-language keys in this namespace; don’t invent shorter identifiers unless you plan a repo-wide migration.
- ko-KR additions: prefer Crowdin for missing translations; use manual entries only for temporary QA and sync them through Crowdin afterward to avoid drift.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (3)
apps/journeys-admin/src/components/Editor/Slider/Settings/CanvasDetails/AddBlock/NewImageButton/NewImageButton.tsx(1 hunks)apps/journeys-admin/src/libs/useJourneyCreateMutation/useJourneyCreateMutation.ts(1 hunks)libs/locales/en/apps-journeys-admin.json(7 hunks)
✅ Files skipped from review due to trivial changes (1)
- apps/journeys-admin/src/libs/useJourneyCreateMutation/useJourneyCreateMutation.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- libs/locales/en/apps-journeys-admin.json
🧰 Additional context used
📓 Path-based instructions (3)
**/*.{ts,tsx,js,jsx}
📄 CodeRabbit inference engine (.cursor/rules/base.mdc)
**/*.{ts,tsx,js,jsx}: Use early returns whenever possible to make the code more readable.
Use descriptive variable and function/const names.
Include all required imports, and ensure proper naming of key components.
Files:
apps/journeys-admin/src/components/Editor/Slider/Settings/CanvasDetails/AddBlock/NewImageButton/NewImageButton.tsx
**/*.{ts,tsx}
📄 CodeRabbit inference engine (.cursor/rules/base.mdc)
Define a type if possible.
Files:
apps/journeys-admin/src/components/Editor/Slider/Settings/CanvasDetails/AddBlock/NewImageButton/NewImageButton.tsx
apps/**/*.{js,jsx,ts,tsx}
📄 CodeRabbit inference engine (.cursor/rules/apps.mdc)
apps/**/*.{js,jsx,ts,tsx}: Always use MUI over HTML elements; avoid using CSS or tags.
Use descriptive variable and function/const names. Also, event functions should be named with a “handle” prefix, like “handleClick” for onClick and “handleKeyDown” for onKeyDown.
Implement accessibility features on elements. For example, a tag should have a tabindex=“0”, aria-label, on:click, and on:keydown, and similar attributes.
Files:
apps/journeys-admin/src/components/Editor/Slider/Settings/CanvasDetails/AddBlock/NewImageButton/NewImageButton.tsx
🧠 Learnings (1)
📚 Learning: 2025-02-04T16:36:58.743Z
Learnt from: Kneesal
PR: JesusFilm/core#5100
File: apps/api-journeys-modern/src/schema/blocks/card/card.zod.ts:0-0
Timestamp: 2025-02-04T16:36:58.743Z
Learning: In the CardBlockSchema (apps/api-journeys-modern/src/schema/blocks/card/card.zod.ts), the parentBlockId field should remain nullable, despite the description indicating it can only be a child of a step block.
Applied to files:
apps/journeys-admin/src/components/Editor/Slider/Settings/CanvasDetails/AddBlock/NewImageButton/NewImageButton.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
- GitHub Check: Deploy Preview (watch-modern, 7594/merge, pull_request, 22)
- GitHub Check: Deploy Preview (videos-admin, 7594/merge, pull_request, 22)
- GitHub Check: Deploy Preview (journeys, 7594/merge, pull_request, 22)
- GitHub Check: Deploy Preview (watch, 7594/merge, pull_request, 22)
- GitHub Check: Deploy Preview (journeys-admin, 7594/merge, pull_request, 22)
- GitHub Check: test (22, 3/3)
- GitHub Check: test (22, 1/3)
- GitHub Check: build (22)
- GitHub Check: test (22, 2/3)
Revived DanChae's branch; finished adding the translations as per NES-311; fixed more translations that were also missing.
This PR supercedes this one: #3994
Notes For Testers are in NES-311.
Summary by CodeRabbit
Style
Bug Fixes
Tests