compose: Add a placeholder "is …" for the `/me` slash command.

Fixes: #27399.
This commit is contained in:
N-Shar-ma 2023-10-27 18:08:59 +05:30 committed by Tim Abbott
parent 9a6cf82adc
commit ad26247247
3 changed files with 4 additions and 1 deletions

View File

@ -74,6 +74,7 @@ IGNORED_PHRASES = [
r"user@example\.com", r"user@example\.com",
r"acme", r"acme",
# Fragments of larger strings # Fragments of larger strings
r"is …",
r"your subscriptions on your Streams page", r"your subscriptions on your Streams page",
r"Add global time<br />Everyone sees global times in their own time zone\.", r"Add global time<br />Everyone sees global times in their own time zone\.",
r"user", r"user",

View File

@ -445,6 +445,7 @@ export const slash_commands = [
text: $t({defaultMessage: "/me is excited (Display action text)"}), text: $t({defaultMessage: "/me is excited (Display action text)"}),
name: "me", name: "me",
aliases: "", aliases: "",
placeholder: $t({defaultMessage: "is …"}),
}, },
{ {
text: $t({defaultMessage: "/poll Where should we go to lunch today? (Create a poll)"}), text: $t({defaultMessage: "/poll Where should we go to lunch today? (Create a poll)"}),

View File

@ -182,6 +182,7 @@ const me_slash = {
name: "me", name: "me",
aliases: "", aliases: "",
text: "translated: /me is excited (Display action text)", text: "translated: /me is excited (Display action text)",
placeholder: "translated: is …",
}; };
const my_slash = { const my_slash = {
@ -576,7 +577,7 @@ test("content_typeahead_selected", ({override}) => {
fake_this.query = "/m"; fake_this.query = "/m";
fake_this.completing = "slash"; fake_this.completing = "slash";
actual_value = ct.content_typeahead_selected.call(fake_this, me_slash); actual_value = ct.content_typeahead_selected.call(fake_this, me_slash);
expected_value = "/me "; expected_value = "/me translated: is …";
assert.equal(actual_value, expected_value); assert.equal(actual_value, expected_value);
fake_this.query = "/da"; fake_this.query = "/da";