diff --git a/client/web/src/plugin/__tests__/utils.spec.ts b/client/web/src/plugin/__tests__/utils.spec.ts index de4debb8..b55c3d6f 100644 --- a/client/web/src/plugin/__tests__/utils.spec.ts +++ b/client/web/src/plugin/__tests__/utils.spec.ts @@ -25,18 +25,20 @@ describe('parsePluginManifest', () => { false, ], [ - 'not allow additional properties', + 'allow i18n properties', JSON.stringify({ - label: '网页面板插件', + label: 'webpanel', + 'label.zh-CN': '网页面板插件', name: 'com.msgbyte.webview', url: '/plugins/com.msgbyte.webview/index.js', version: '0.0.0', author: 'msgbyte', - description: '为群组提供创建网页面板的功能', + description: 'Provide groups with the ability to create web panels', + 'description.zh-CN': '为群组提供创建网页面板的功能', requireRestart: false, foo: 'bar', }), - false, + true, ], [ 'missed properties',