diff --git a/admin/package-lock.json b/admin/package-lock.json
index de351ce..68b8ecf 100644
--- a/admin/package-lock.json
+++ b/admin/package-lock.json
@@ -16,9 +16,11 @@
"@tanstack/react-query": "^5.62.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
+ "i18next": "^26.4.7",
"lucide-react": "^1.33.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
+ "react-i18next": "^17.0.20",
"react-router-dom": "^6.28.0",
"recharts": "^2.15.4",
"tailwind-merge": "^3.6.0",
@@ -4229,6 +4231,15 @@
"node": ">=18"
}
},
+ "node_modules/html-parse-stringify": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/html-parse-stringify/-/html-parse-stringify-4.0.1.tgz",
+ "integrity": "sha512-0zHsZJrK7S3K2aucXWL6ycoYJ/iNtIcFHC/nYQgFklPtrv5LpJctIiSCroWZWeuoXvuyFdzp6KzjJQ+OT5MfFw==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://locize.com"
+ }
+ },
"node_modules/http-proxy-agent": {
"version": "7.0.2",
"resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
@@ -4257,6 +4268,34 @@
"node": ">= 14"
}
},
+ "node_modules/i18next": {
+ "version": "26.4.7",
+ "resolved": "https://registry.npmjs.org/i18next/-/i18next-26.4.7.tgz",
+ "integrity": "sha512-p/3hqy6EcuqRs6wNwBYwGGC1fzBJSMxV9zMuN814ab/7QjdZbXfjXwuPZdQbngX6KDOTxM01uUiZyqmMB8ghZg==",
+ "funding": [
+ {
+ "type": "individual",
+ "url": "https://www.locize.com/i18next"
+ },
+ {
+ "type": "individual",
+ "url": "https://www.i18next.com/how-to/faq#i18next-is-awesome.-how-can-i-support-the-project"
+ },
+ {
+ "type": "individual",
+ "url": "https://www.locize.com"
+ }
+ ],
+ "license": "MIT",
+ "peerDependencies": {
+ "typescript": "^5 || ^6 || ^7"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
"node_modules/iconv-lite": {
"version": "0.6.3",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
@@ -5286,6 +5325,33 @@
"react": "^18.3.1"
}
},
+ "node_modules/react-i18next": {
+ "version": "17.0.20",
+ "resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-17.0.20.tgz",
+ "integrity": "sha512-rzSSirf0NP9vfcUXHZAksIuyMWl7L/T/7nm8S+sSIFuIzku54qcyyVAOZXbawPNpUxGkDx/eosSv4DrpzcxuOQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.29.7",
+ "html-parse-stringify": "^4.0.1",
+ "use-sync-external-store": "^1.6.0"
+ },
+ "peerDependencies": {
+ "i18next": ">= 26.2.0",
+ "react": ">= 16.8.0",
+ "typescript": "^5 || ^6 || ^7"
+ },
+ "peerDependenciesMeta": {
+ "react-dom": {
+ "optional": true
+ },
+ "react-native": {
+ "optional": true
+ },
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
"node_modules/react-is": {
"version": "17.0.2",
"resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",
@@ -5894,7 +5960,7 @@
"version": "5.9.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
- "dev": true,
+ "devOptional": true,
"license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
@@ -5995,6 +6061,15 @@
}
}
},
+ "node_modules/use-sync-external-store": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.7.0.tgz",
+ "integrity": "sha512-6L+EeigHMQhdaIPNIFUKwfWJSwWFQ8gJbJ2DLOs5sDIegTwR9fRxvnM3uciHKjIZhFz+KAv2emhWMRvDmMcY8A==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
"node_modules/victory-vendor": {
"version": "36.9.2",
"resolved": "https://registry.npmjs.org/victory-vendor/-/victory-vendor-36.9.2.tgz",
diff --git a/admin/package.json b/admin/package.json
index b2a8a3b..0c970e4 100644
--- a/admin/package.json
+++ b/admin/package.json
@@ -24,9 +24,11 @@
"@tanstack/react-query": "^5.62.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
+ "i18next": "^26.4.7",
"lucide-react": "^1.33.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
+ "react-i18next": "^17.0.20",
"react-router-dom": "^6.28.0",
"recharts": "^2.15.4",
"tailwind-merge": "^3.6.0",
diff --git a/admin/playwright.config.ts b/admin/playwright.config.ts
index 6bc5eb6..051e432 100644
--- a/admin/playwright.config.ts
+++ b/admin/playwright.config.ts
@@ -10,6 +10,9 @@ export default defineConfig({
reporter: [['list'], ['html', { outputFolder: 'test/report', open: 'never' }]],
use: {
baseURL: 'http://localhost:5174',
+ // Playwright/Chromium domyślnie en-US — wymuszamy PL, bo detekcja i18n
+ // ustawiłaby EN i wszystkie selektory PL w e2e przestałyby pasować.
+ locale: 'pl-PL',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
diff --git a/admin/src/components/Layout.tsx b/admin/src/components/Layout.tsx
index ae0b99f..f7c7f5d 100644
--- a/admin/src/components/Layout.tsx
+++ b/admin/src/components/Layout.tsx
@@ -18,7 +18,7 @@ import {
import { useAuth } from '../store/auth';
import { useIsTrainer } from '../api/queries';
import { APP_URL } from '../config';
-import { Button, ThemeToggle } from './ui';
+import { Button, ThemeToggle, LanguageToggle } from './ui';
import { Topbar } from '../topbar';
import { Brandmark } from './Brandmark';
import { Avatar } from './Avatar';
@@ -207,6 +207,7 @@ export default function Layout() {
+