feat: enhance plugin page internationalization (#7998)

* feat: enhance plugin page internationalization

- Updated PluginRoute to read initial context from JWT and set it in the bridge SDK.
- Added methods to retrieve locale and plugin metadata for better i18n support.
- Enhanced pluginI18n utility to resolve page-specific translations and added new functions for page titles and descriptions.
- Modified PluginPagePage and PluginDetailPage to utilize new i18n features for dynamic content rendering.
- Improved documentation for plugin page i18n structure and usage.
- Added tests to verify the correct integration of i18n in plugin pages and context handling.

* fix test
This commit is contained in:
Weilong Liao
2026-05-04 20:15:21 +08:00
committed by GitHub
parent 319f50be2a
commit cb4f941e43
12 changed files with 952 additions and 72 deletions

View File

@@ -958,8 +958,8 @@ async def test_update_plugin_dependency_install_flow(
events = []
_mock_missing_requirements(monkeypatch, {"networkx"})
async def mock_update(plugin, proxy=""):
del proxy
async def mock_update(plugin, proxy="", download_url=""):
del proxy, download_url
events.append(("update", plugin.name))
monkeypatch.setattr(plugin_manager_pm.updator, "update", mock_update)