[PR #11297] [CLOSED] i18n(common): add i18n translation #38334

Closed
opened 2026-04-25 11:24:32 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/11297
Author: @OrenZhang
Created: 3/6/2025
Status: Closed

Base: devHead: i18n_translation


📝 Commits (4)

  • 92fb110 i18n(common): add i18n translation
  • 56ac7ef i18n(common): add user language to prompt template
  • 398729d refactor(lint): code lint
  • f34132f refactor(lint): code lint

📊 Changes

70 files changed (+0 additions, -0 deletions)

View changed files

📝 backend/open_webui/config.py (+5 -1)
📝 backend/open_webui/routers/tasks.py (+16 -3)
backend/open_webui/utils/request.py (+6 -0)
📝 backend/open_webui/utils/task.py (+28 -4)
📝 src/lib/apis/index.ts (+2 -2)
📝 src/lib/apis/ollama/index.ts (+1 -1)
📝 src/lib/components/AddConnectionModal.svelte (+1 -1)
📝 src/lib/components/admin/Settings/Documents.svelte (+12 -4)
📝 src/lib/components/admin/Settings/Models.svelte (+2 -2)
📝 src/lib/components/admin/Settings/WebSearch.svelte (+6 -2)
📝 src/lib/components/channel/Messages.svelte (+7 -4)
📝 src/lib/components/chat/MessageInput/CallOverlay.svelte (+1 -1)
📝 src/lib/components/chat/Messages/CodeBlock.svelte (+3 -1)
📝 src/lib/components/chat/Settings/Audio.svelte (+1 -1)
📝 src/lib/components/common/FileItemModal.svelte (+6 -2)
📝 src/lib/components/workspace/common/AccessControl.svelte (+2 -2)
📝 src/lib/i18n/index.ts (+2 -2)
📝 src/lib/i18n/locales/ar-BH/translation.json (+6 -0)
📝 src/lib/i18n/locales/bg-BG/translation.json (+6 -0)
📝 src/lib/i18n/locales/bn-BD/translation.json (+6 -0)

...and 50 more files

📄 Description

Added

  • Add support for {{USER_LANGUAGE}} variable and improved the default prompt template
  • Add i18n wrappers to previously untranslated text elements

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/11297 **Author:** [@OrenZhang](https://github.com/OrenZhang) **Created:** 3/6/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `i18n_translation` --- ### 📝 Commits (4) - [`92fb110`](https://github.com/open-webui/open-webui/commit/92fb1109b6e53bef38ec7fe433e162de83a4cb7a) i18n(common): add i18n translation - [`56ac7ef`](https://github.com/open-webui/open-webui/commit/56ac7efc0ac623a853ea2dfd4d713dbc415bdd04) i18n(common): add user language to prompt template - [`398729d`](https://github.com/open-webui/open-webui/commit/398729dd9e588759de9cb1b5f919e72a72d1099a) refactor(lint): code lint - [`f34132f`](https://github.com/open-webui/open-webui/commit/f34132fc9a9fc989d66b4796fec6a3e50894438c) refactor(lint): code lint ### 📊 Changes **70 files changed** (+0 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+5 -1) 📝 `backend/open_webui/routers/tasks.py` (+16 -3) ➕ `backend/open_webui/utils/request.py` (+6 -0) 📝 `backend/open_webui/utils/task.py` (+28 -4) 📝 `src/lib/apis/index.ts` (+2 -2) 📝 `src/lib/apis/ollama/index.ts` (+1 -1) 📝 `src/lib/components/AddConnectionModal.svelte` (+1 -1) 📝 `src/lib/components/admin/Settings/Documents.svelte` (+12 -4) 📝 `src/lib/components/admin/Settings/Models.svelte` (+2 -2) 📝 `src/lib/components/admin/Settings/WebSearch.svelte` (+6 -2) 📝 `src/lib/components/channel/Messages.svelte` (+7 -4) 📝 `src/lib/components/chat/MessageInput/CallOverlay.svelte` (+1 -1) 📝 `src/lib/components/chat/Messages/CodeBlock.svelte` (+3 -1) 📝 `src/lib/components/chat/Settings/Audio.svelte` (+1 -1) 📝 `src/lib/components/common/FileItemModal.svelte` (+6 -2) 📝 `src/lib/components/workspace/common/AccessControl.svelte` (+2 -2) 📝 `src/lib/i18n/index.ts` (+2 -2) 📝 `src/lib/i18n/locales/ar-BH/translation.json` (+6 -0) 📝 `src/lib/i18n/locales/bg-BG/translation.json` (+6 -0) 📝 `src/lib/i18n/locales/bn-BD/translation.json` (+6 -0) _...and 50 more files_ </details> ### 📄 Description ### Added - Add support for {{USER_LANGUAGE}} variable and improved the default prompt template - Add i18n wrappers to previously untranslated text elements --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 11:24:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#38334