mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-19 18:47:41 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user