General info
-
Use the user’s IP address to detect their region (EU, US, or Global) and set the currency accordingly (EUR or USD via existing logic; currency handling is not part of this story).
-
Use the browser’s language header to automatically set the site’s UI language.
-
Save the detected locale settings (region and language) in a cookie or the user’s profile (if logged in or if cookies are accepted) for future visits.
-
Do not trigger any pop-up or modal for region/language selection on page load – the detection happens silently.
-
Allow users to override the auto-detected region or language at any time via the existing locale selector in the UI.
-
If auto-detection fails or yields no result, default to the EU region and use the browser’s language as the fallback for the UI.
User story
As saclab, we want to auto-detect region and language so that users immediately view content in their expected locale without interruption.
Acceptance Criteria
|
AC |
Scenario (Given/When/Then) |
Screenshot |
|---|---|---|
|
01 |
Given the user’s IP is in Europe, When they visit the site for the first time, Then the region is auto-set to EU (prices shown in EUR) without any prompt. |
|
|
02 |
Given the user’s IP is in the United States, When they visit for the first time, Then the region is auto-set to US (prices shown in USD) without any prompt. |
|
|
03 |
Given the user’s IP is outside EU and US (global), When they visit for the first time, Then the region is auto-set to Global (with default currency) without any prompt. |
|
|
04 |
Given the user’s browser language is set to a supported language (e.g. French), When they visit the site, Then the site’s content is displayed in that language by default. |
|
|
05 |
Given a user with no previously saved locale visits and accepts cookies (or is logged in), When the site auto-detects their region and language, Then those locale values are saved to a cookie or their profile for subsequent visits. |
|
|
06 |
Given a new user visits the site, When region and language are auto-detected on page load, Then no locale selection modal is shown to the user (no interruption to browsing). |
|
|
07 |
Given the site has auto-selected a region and language, When the user manually changes the locale via the selector, Then the site updates to the chosen region/language and uses this new setting going forward (overriding the auto-detected values). |
|
|
08 |
Given the system cannot determine the user’s location (detection fails), When the user visits the site, Then the site defaults to EU region and uses the browser’s language as the UI language. |




Leave a Reply
You must be logged in to post a comment.