Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: locale defaults to en-us (#33840)

Simon Knottf6f6a6225c5c
diff --git a/docs/src/test-api/class-testoptions.md b/docs/src/test-api/class-testoptions.md
index 20dad210e7..c285430616 100644
--- a/docs/src/test-api/class-testoptions.md
+++ b/docs/src/test-api/class-testoptions.md
@@ -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**
diff --git a/packages/playwright/types/test.d.ts b/packages/playwright/types/test.d.ts
index 8d05bdafef..fed6a1bdeb 100644
--- a/packages/playwright/types/test.d.ts
+++ b/packages/playwright/types/test.d.ts
@@ -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**
*