Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions invokeai/frontend/webv2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
if (localStorage.getItem('invokeai:v7:webv2:reduce-motion') === 'true') {
root.setAttribute('data-reduce-motion', 'true');
}
var language = localStorage.getItem('invokeai:v7:webv2:language');
if (language) {
root.setAttribute('lang', language);
var direction = language === 'ar' || language === 'he' ? 'rtl' : 'ltr';
root.setAttribute('dir', direction);
}
} catch (error) {
/* ignore malformed storage */
}
Expand Down
5 changes: 5 additions & 0 deletions invokeai/frontend/webv2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"fix": "pnpm run lint:oxc:fix && pnpm run format:write",
"format:check": "oxfmt --check .",
"format:write": "oxfmt --write .",
"i18n:report": "node scripts/i18n-report.mjs",
"i18n:report:verbose": "node scripts/i18n-report.mjs --verbose",
"lint": "pnpm run format:check && pnpm run lint:oxc && pnpm run lint:tsc",
"lint:oxc": "oxlint --react-plugin --import-plugin --deny-warnings .",
"lint:oxc:fix": "oxlint --react-plugin --import-plugin --fix .",
Expand All @@ -28,10 +30,13 @@
"@tanstack/react-router": "^1.170.16",
"@tanstack/react-virtual": "^3.14.3",
"@xyflow/react": "^12.11.1",
"i18next": "^25.7.3",
"i18next-http-backend": "^3.0.2",
"lucide-react": "^1.21.0",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"react-hook-tanstack-virtual": "^0.0.4",
"react-i18next": "^16.5.0",
"react-icons": "^5.6.0",
"socket.io-client": "^4.8.3",
"tinykeys": "^4.0.0",
Expand Down
112 changes: 112 additions & 0 deletions invokeai/frontend/webv2/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions invokeai/frontend/webv2/public/locales/ar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions invokeai/frontend/webv2/public/locales/az.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions invokeai/frontend/webv2/public/locales/bg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions invokeai/frontend/webv2/public/locales/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions invokeai/frontend/webv2/public/locales/en-GB.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading
Loading