Skip to content

Commit

Permalink
docs: locale defaults to en-us (#33840)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skn0tt authored Dec 5, 2024
1 parent ee8208b commit f6f6a62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion docs/src/test-api/class-testoptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,11 @@ export default defineConfig({
});
```

## property: TestOptions.locale = %%-context-option-locale-%%
## property: TestOptions.locale
* since: v1.10
- type: <[string]>

Specify user locale, for example `en-GB`, `de-DE`, etc. Locale will affect `navigator.language` value, `Accept-Language` request header value as well as number and date formatting rules. Defaults to `en-US`. Learn more about emulation in our [emulation guide](../emulation.md#locale--timezone).

**Usage**

Expand Down
4 changes: 2 additions & 2 deletions packages/playwright/types/test.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6247,8 +6247,8 @@ export interface PlaywrightTestOptions {
javaScriptEnabled: boolean;
/**
* Specify user locale, for example `en-GB`, `de-DE`, etc. Locale will affect `navigator.language` value,
* `Accept-Language` request header value as well as number and date formatting rules. Defaults to the system default
* locale. Learn more about emulation in our [emulation guide](https://playwright.dev/docs/emulation#locale--timezone).
* `Accept-Language` request header value as well as number and date formatting rules. Defaults to `en-US`. Learn more
* about emulation in our [emulation guide](https://playwright.dev/docs/emulation#locale--timezone).
*
* **Usage**
*
Expand Down

0 comments on commit f6f6a62

Please sign in to comment.