Skip to content

Commit

Permalink
Merge pull request RocketChat#78 from Prince-Mendiratta/main
Browse files Browse the repository at this point in the history
feat: show proper description in command preview
  • Loading branch information
samad-yar-khan authored Mar 27, 2023
2 parents 75b0641 + c3c7c9a commit cdf7f8a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion github/commands/GhCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class GHCommand implements ISlashCommand {
public constructor(private readonly app: GithubApp) {}
public command: string = "gh";
public i18nParamsExample: string = "";
public i18nDescription: string = "fetching github data";
public i18nDescription: string = "cmd_description";
public providesPreview: boolean = false;

public async executor(
Expand Down
2 changes: 1 addition & 1 deletion github/commands/GithubCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { CommandUtility } from "../lib/commandUtility";
export class GithubCommand implements ISlashCommand {
public constructor(private readonly app: GithubApp) {}
public command = "github";
public i18nDescription = "fetching github data";
public i18nDescription = "cmd_description";
public providesPreview = false;
public i18nParamsExample = "";

Expand Down
3 changes: 3 additions & 0 deletions github/i18n/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"cmd_description": "Search, Share, Review, Merge, Subscribe GitHub Resources and do much more from Rocket.Chat."
}

0 comments on commit cdf7f8a

Please sign in to comment.