Skip to content

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

Description

@pandinocoder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions