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

src/pages/index.astro should check user's locale when redirecting instead of assuming en-US #97

Open
lodicolo opened this issue Mar 8, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@lodicolo
Copy link
Member

lodicolo commented Mar 8, 2023

https://github.com/AscensionGameDev/Intersect-Documentation/blob/main/src/pages/index.astro#L18

The following might be usable to grab the user's preferred languages, and we can cross-reference that against our enabled language codes to redirect them properly:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/i18n/getAcceptLanguages

@lodicolo lodicolo added the enhancement New feature or request label Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant