From 87aaf1f2d91ebf8eae401e284eae42ede86d1b84 Mon Sep 17 00:00:00 2001 From: Joost De Cock Date: Tue, 12 Sep 2023 16:02:37 +0200 Subject: [PATCH] feat(plugin-annotations): Allow setting title and desc via msg --- plugins/plugin-annotations/src/flag.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/plugin-annotations/src/flag.mjs b/plugins/plugin-annotations/src/flag.mjs index c5138e9560a..d7590ce040e 100644 --- a/plugins/plugin-annotations/src/flag.mjs +++ b/plugins/plugin-annotations/src/flag.mjs @@ -33,6 +33,11 @@ function flag(type, store, data) { data = presets[data] type = data.type } + if (data.msg) { + data.title = data.msg + '.t' + data.desc = data.msg + '.d' + delete data.msg + } if (!data.id && !data.title) { store.log.warn(`store.flag.${type} called without an id or title property`)