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 setting for site main language #473

Merged
merged 2 commits into from Oct 16, 2023

Conversation

stalegjelsten
Copy link
Contributor

Addresses #472

Adds a setting for the digital garden's main language which is saved to the user's .env.

This setting is used by the template (see new PR) to set the the lang attribute of the html element. This improves accessibility and assists search engines and browsers.

Reference: https://www.w3schools.com/tags/ref_language_codes.asp

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

Adds a setting for the site main language. This setting is used to set
the the `lang` attribute of the html element. This improves
accessibility and assists search engines and browsers.

Reference: https://www.w3schools.com/tags/ref_language_codes.asp
Copy link
Owner

@oleeskild oleeskild left a comment

Choose a reason for hiding this comment

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

This looks good! I'm gonna merge it in, do some testing, and if everything looks okay I'll make a new release. Thank you for the contribution! This could also be the first step in creating localization support, where all the hardcoded strings can be set based on what language you've chosen.

@oleeskild oleeskild merged commit b0982b5 into oleeskild:main Oct 16, 2023
4 checks 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