Skip to content

Conversation

@ShubhamOulkar
Copy link
Member

@ShubhamOulkar ShubhamOulkar commented Aug 18, 2025

@ShubhamOulkar ShubhamOulkar requested a review from a team as a code owner August 18, 2025 06:42
@netlify
Copy link

netlify bot commented Aug 18, 2025

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit 815495c
🔍 Latest deploy log https://app.netlify.com/projects/expressjscom-preview/deploys/68c6d0b7f16b300008d59158
😎 Deploy Preview https://deploy-preview-2040--expressjscom-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 18, 2025

🚦 Lighthouse Results (Mobile & Desktop)

URL Device Perf A11y Best Practices
/ mobile 🔴 62 🟢 100 🟢 96
/en/blog/posts.html mobile 🟠 76 🟢 96 🟢 96
/en/5x/api.html mobile 🔴 72 🟢 95 🟢 96
/ desktop 🟢 100 🟢 100 🟢 96
/en/blog/posts.html desktop 🟢 100 🟢 96 🟢 93
/en/5x/api.html desktop 🟢 97 🟢 95 🟢 96

@bjohansebas bjohansebas marked this pull request as draft August 19, 2025 03:31
@ShubhamOulkar ShubhamOulkar marked this pull request as ready for review August 26, 2025 15:05
@ShubhamOulkar ShubhamOulkar changed the title (WIP) feat : lang-picker feat : language picker Aug 26, 2025
@ShubhamOulkar ShubhamOulkar changed the title feat : language picker feat : add new language picker component Aug 26, 2025
echo "Checking Netlify preview: $PREVIEW_URL"
for i in $(seq 1 $MAX_RETRIES); do
if curl -s --head --max-time 5 "$PREVIEW_URL" | grep "200 OK" > /dev/null; then
if curl -s -I "$PREVIEW_URL" | grep "HTTP/.* 200" > /dev/null; then
Copy link
Member Author

@ShubhamOulkar ShubhamOulkar Aug 31, 2025

Choose a reason for hiding this comment

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

Correcting header status string. Now lighthouse audit is not running because of wrong status checking.

Comment on lines 2 to 4
{% assign url_parts = page.url | split: '/' %}
{% assign url_remainder = url_parts | slice: 2, url_parts.size | join: '/' %}
{% assign current_lang = page.lang %}
Copy link
Member

Choose a reason for hiding this comment

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

I think this should stay, otherwise we won’t be able to know the current URL to keep the page where it was and only change the language.

Copy link
Member Author

Choose a reason for hiding this comment

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

Right, thank you for pointing out.

<ul id="navmenu">
<li>
<a href="/" id="home-menu" {% if page.menu=='home' %} class="active" {% endif %}>
{{ site.data[page.lang].menu.home }}
Copy link
Member Author

Choose a reason for hiding this comment

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

Translations for this is removed. This link is redundant because express logo also points to homepage.

@bjohansebas bjohansebas requested a review from Copilot September 14, 2025 14:24

This comment was marked as resolved.

Copy link
Member

@bjohansebas bjohansebas left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@bjohansebas bjohansebas merged commit 00e199a into expressjs:gh-pages Sep 14, 2025
14 checks passed
@ShubhamOulkar ShubhamOulkar deleted the refactor-lang-picker branch September 14, 2025 14:35
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.

Language picker: Add identifying feature and remove/fix duplicate nav ids

2 participants