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

Support for custom language parsing method detectBrowserLanguage #3094

Open
2 of 4 tasks
Zhang-Wei-666 opened this issue Sep 12, 2024 · 1 comment
Open
2 of 4 tasks

Comments

@Zhang-Wei-666
Copy link

Zhang-Wei-666 commented Sep 12, 2024

Describe the feature

是否可以支持使用 detectBrowserLanguage 时, 用户首次访问时, 通过自定义方法解析并返回语言


Is it possible to support custom language parsing and return when using detectBrowserLanguage for the user's first visit?

Additional information

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks

@Zhang-Wei-666 Zhang-Wei-666 changed the title Support custom method for parsing navigator.languages when using detectBrowserLanguage Support for custom language parsing method detectBrowserLanguage Sep 12, 2024
@BobbieGoede
Copy link
Collaborator

We do have something like this for server-side translations (nitro context), which requires setting a locale detector. It would be nice to have a similar configurable pattern for the app context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants