Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

Commit 959588d

Browse files
committed
Add i18n docs
1 parent 9320b74 commit 959588d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ See the full documentation at https://docs.swetrix.com/captcha/introduction
3131
| `data-project-id` | Your project ID | Valid project ID | Required |
3232
| `data-theme` | Color theme | `auto`, `light`, `dark` | `auto` |
3333
| `data-response-input-name` | Hidden input name | Any string | `swetrix-captcha-response` |
34+
| `data-lang` | Force a specific language | `en`, `de`, `fr`, `pl`, `uk` | Auto-detected |
35+
36+
### Language Support
37+
38+
The widget supports **English**, **German**, **French**, **Polish**, and **Ukrainian**.
39+
40+
Language is detected automatically in this order:
41+
1. `data-lang` attribute on the widget element
42+
2. `lang` attribute on parent elements (e.g., `<html lang="de">`)
43+
3. Browser's preferred language
3444

3545
### Theme Options
3646

0 commit comments

Comments
 (0)