Skip to content

bugfix: set correct html lang attribute #12478

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

Merged
merged 1 commit into from
Apr 15, 2025
Merged

Conversation

mzner
Copy link
Contributor

@mzner mzner commented Apr 14, 2025

We've added a fix to ensure that the HTML lang attribute is set correctly in the web application. This change improves accessibility and ensures that screen readers and other assistive technologies can properly interpret the language of the content.

Description

Related Issue

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

Open tasks:

  • ...

@mzner mzner requested review from LukasHirt and Copilot April 14, 2025 11:52
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

packages/web-runtime/src/App.vue:162

  • Ensure that the value passed as the 'language' property to setCurrentLanguage is correct; if a translation function is expected (such as $gettext), consider passing that instead of the entire getText object.
setCurrentLanguage({ language: getText, languageSetting: currentLanguage })

@mzner mzner force-pushed the bugfix/wrong-html-lang-attribute branch 4 times, most recently from f77f319 to 4b123ce Compare April 15, 2025 06:15
@mzner mzner force-pushed the bugfix/wrong-html-lang-attribute branch from 4b123ce to 5ac6186 Compare April 15, 2025 06:25
@LukasHirt
Copy link
Collaborator

I still see the lang incorrect:

image

Copy link
Collaborator

@LukasHirt LukasHirt left a comment

Choose a reason for hiding this comment

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

Disregard my previous comment. I did not build the assets. Works nicely, awesome!

@mzner mzner merged commit 2522bc3 into master Apr 15, 2025
4 checks passed
@mzner mzner deleted the bugfix/wrong-html-lang-attribute branch April 15, 2025 08:16
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.

Public shares: Wrong html 'lang' attribute
2 participants