Merge pull request #939 from paulhenry46/plugin_trad_fix

fix: add translations for plugin fetched from marketplace
This commit is contained in:
Linus Rath
2026-09-07 17:54:48 +02:00
committed by GitHub
+4
View File
@@ -365,6 +365,10 @@ export async function POST(request: NextRequest) {
...(declaredApiPostPaths.length > 0
? { apiPostPaths: declaredApiPostPaths }
: {}),
...(manifest.locales && typeof manifest.locales === 'object'
? { locales: manifest.locales as ServerPlugin['locales'] }
: {}),
};
await savePlugin(plugin, code);