Skip to content

Commit 5e5a9df

Browse files
committed
feat: 支持更简洁的多语言内容加载
1 parent eb3ff8e commit 5e5a9df

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-flow-interface",
3-
"version": "0.17.18",
3+
"version": "0.17.19",
44
"description": "Interface package for NEXT FlOW. You can use this package to build your own plugin that can control anything.",
55
"type": "module",
66
"module": "dist/index.js",

src/plugin/base-plugin.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Locale } from '@/api/service/main/internationalization/dto/locale'
12
import { ThemeColor } from '@/api/service/main/theme/dto/theme-color.enum'
23

34
import { PluginType } from './dto/plugin-type.enum'
@@ -15,6 +16,9 @@ export default interface BasePlugin {
1516

1617
data?: Record<string, unknown>
1718

19+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
20+
messages?: Record<Locale, Record<string, any>> | string
21+
1822
onInstall?: () => Promise<void>
1923
onEnable?: () => Promise<void>
2024
onDisable?: () => Promise<void>

0 commit comments

Comments
 (0)