This commit is contained in:
2025-10-17 14:34:31 +08:00
parent 7ddaeb4bf8
commit a9074aca30
10 changed files with 290 additions and 54 deletions

View File

@@ -1,3 +1,4 @@
import i18n from '@/i18n';
import type { Setting } from '@/types';
import { KintoneRestAPIClient } from '@kintone/rest-api-client';
@@ -27,6 +28,9 @@ import { MobileButton } from 'kintone-ui-component/lib/mobile/button';
throw new Error('このページではヘッダー要素が利用できません。');
}
// 测试 i18n
const { t } = i18n.global;
// 创建按钮
const button = new MobileButton({
text: setting.buttonName,
@@ -42,7 +46,7 @@ import { MobileButton } from 'kintone-ui-component/lib/mobile/button';
});
const pluginsInfo = plugins.map((p) => p.name).join('、');
const message = setting.message + '\n--------\n【Plugins】 ' + pluginsInfo;
const message = t('hello') + "\n" + setting.message + '\n--------\n【Plugins】 ' + pluginsInfo;
alert(message);
} catch (error) {
console.error('Failed to fetch plugins:', error);