-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
Create config constant for the lang attribute #133
Comments
🤔 |
Right, I wasn't very clear. What I meant is that if you want to change the default, let's call them language settings, apart from the The simplest solution would be to add another variable. Or we could create a single var and pass to the It's a minor thing, but it might improve the overall UX experience :) |
Good idea. export const LOCALE = {
lang: "en", // html lang code. Set this empty and default will be "en"
langTag: ["en-EN"], // BCP 47 Language Tags. Set this empty [] to use the environment default
} as const; What do you think? You can PR if you want; and maybe I'll co-author. |
If you're using
LOCALE = ["en-EN"]
it might be worth adding theLANG
constant and adjusting theLayout.astro
so all the minimum language settings are in one place.What do you think? I can handle the PR for it.
The text was updated successfully, but these errors were encountered: