perf: add supports for showing multilingual plugin README

This commit is contained in:
Junyan Qin
2025-11-21 12:14:04 +08:00
parent b75ec9e989
commit 6c03a1dd31
3 changed files with 27 additions and 3 deletions
@@ -61,9 +61,11 @@ export class CloudServiceClient extends BaseHttpClient {
public getPluginREADME(
author: string,
pluginName: string,
language?: string,
): Promise<{ readme: string }> {
return this.get<{ readme: string }>(
`/api/v1/marketplace/plugins/${author}/${pluginName}/resources/README`,
language ? { language } : undefined,
);
}