mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 01:40:15 +08:00
* feat: Implement plugin internationalization support - Added support for plugins to provide localized names, descriptions, and configuration texts through JSON files in the `.astrbot-plugin/i18n` directory. - Updated various components to utilize the new internationalization functions, including `ConfigItemRenderer`, `ExtensionCard`, `ItemCard`, `ObjectEditor`, `PluginSetSelector`, and `TemplateListEditor`. - Enhanced the `usePluginI18n` utility to resolve plugin-specific translations based on the current locale. - Modified the `common` store to include an `i18n` field for plugin metadata. - Updated documentation to include guidelines for plugin internationalization. - Added tests to ensure proper loading of localization files and integration with plugin metadata. * perf: code quality * feat: update config path handling for internationalization support