Skip to content
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

Adds user selected language in <html lang=""> #208

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

stalegjelsten
Copy link
Contributor

@stalegjelsten stalegjelsten commented Oct 6, 2023

Must be seen in connection with oleeskild/obsidian-digital-garden#473 and oleeskild/obsidian-digital-garden#472

This commit uses the SITE_MAIN_LANGUAGE set in the .env for all lang attributes in html elements. If no SITE_MAIN_LANGUAGE is set, it defaults to <html lang="en">.

This is part of my first pull request (and I have zero Obsidian plugin development experience), so please be very critical of my work.

This commit uses the SITE_MAIN_LANGUAGE set in the .env for all
lang attributes in html elements. This improves accessibility.
@oleeskild
Copy link
Owner

This looks good! I've also looked over the corresponding PR in the plugin repo, which also looks good. I'll release it right away. Thanks for the contribution!

@oleeskild oleeskild merged commit 9d74cb1 into oleeskild:main Oct 16, 2023
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.

None yet

2 participants