Skip to content

Locale detection mismatch #438

Answered by ivanhofer
oskar-gmerek asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @oskar-gmerek,
the example works as expected. The code in the example just uses the language-header for detection.
https://github.com/ivanhofer/typesafe-i18n-demo-sveltekit/blob/main/src/hooks.ts#L25-L28

If you want to use the IP-address as a detection strategy, you would need to write your own custom locaale detector. You can find more information in the official docs

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ivanhofer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #437 on September 08, 2022 15:03.