DEP-233 and 235: add language switching in public and preview interfaces - #2870
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## DEP-234-authoring-language-switching #2870 +/- ##
========================================================================
- Coverage 72.75% 72.64% -0.12%
========================================================================
Files 532 533 +1
Lines 21489 21605 +116
Branches 1855 1819 -36
========================================================================
+ Hits 15635 15694 +59
- Misses 5844 5901 +57
Partials 10 10
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
jareth-whitney
left a comment
There was a problem hiding this comment.
Great job with this implementation of language switching. I'm excited to play around with this on on the test server. Nothing blocking, as per usual. Just check the following:
- Check engagement start/end dates are being translated from UTC to local
- Authentication-based CSS check (should be fine, just checking that it's not trying to hide anything)
| <Await resolve={engagementInfo}> | ||
| {([engagement, startDate, endDate]: [Engagement, dayjs.Dayjs | null, dayjs.Dayjs | null]) => { | ||
| {([engagement, resolvedTranslationBundle]: [Engagement, TranslationBundle | undefined]) => { | ||
| const startDate = dayjs(engagement.start_date); |
There was a problem hiding this comment.
Just checking the start/end date get converted from UTC.
| menuName="Public Language Menu" | ||
| translationLanguages={translationLanguages} | ||
| currentLanguageCode={language} | ||
| top={isAuthenticated ? { xs: '8px', md: '12px' } : 0} |
There was a problem hiding this comment.
Looks like this is just positioning based on whether or not an admin area control is present. Just making sure that this isn't security by obfuscation.
| } | ||
| // If there is no extension, it is a link rather than a file | ||
| if (url.indexOf('.') === -1) { | ||
| if (!url.includes('.')) { |
There was a problem hiding this comment.
Thank you for the small optimizations throughout
| userEvent.click(dropdownMenu); | ||
| const englishMenuItem = await screen.findByRole('option', { name: 'English' }); | ||
| expect(englishMenuItem).toBeInTheDocument(); | ||
| expect(screen.getByText('engage')).toBeInTheDocument(); |
There was a problem hiding this comment.
Thank you for adding some unit tests.
| ## June 10, 2026 | ||
|
|
||
| - **Feature** Added language switcher to public, preview engagement pages [🎟️ DEP-233](https://citz-gdx.atlassian.net/browse/DEP-233) and [🎟️ DEP-235](https://citz-gdx.atlassian.net/browse/DEP-235) | ||
| - Added a common language switcher component that can be used to switch between language views within a language context. |
There was a problem hiding this comment.
Thanks for unifying the language switchers
|
8ac2f5d
into
DEP-234-authoring-language-switching



Issue #: 🎟️ DEP-233 and 🎟️ DEP-235
Description of changes:
User Guide update ticket (if applicable):
Common component changes: