mirror of https://github.com/zulip/zulip.git
compose: Add a placeholder "is …" for the `/me` slash command.
Fixes: #27399.
This commit is contained in:
parent
9a6cf82adc
commit
ad26247247
|
@ -74,6 +74,7 @@ IGNORED_PHRASES = [
|
|||
r"user@example\.com",
|
||||
r"acme",
|
||||
# Fragments of larger strings
|
||||
r"is …",
|
||||
r"your subscriptions on your Streams page",
|
||||
r"Add global time<br />Everyone sees global times in their own time zone\.",
|
||||
r"user",
|
||||
|
|
|
@ -445,6 +445,7 @@ export const slash_commands = [
|
|||
text: $t({defaultMessage: "/me is excited (Display action text)"}),
|
||||
name: "me",
|
||||
aliases: "",
|
||||
placeholder: $t({defaultMessage: "is …"}),
|
||||
},
|
||||
{
|
||||
text: $t({defaultMessage: "/poll Where should we go to lunch today? (Create a poll)"}),
|
||||
|
|
|
@ -182,6 +182,7 @@ const me_slash = {
|
|||
name: "me",
|
||||
aliases: "",
|
||||
text: "translated: /me is excited (Display action text)",
|
||||
placeholder: "translated: is …",
|
||||
};
|
||||
|
||||
const my_slash = {
|
||||
|
@ -576,7 +577,7 @@ test("content_typeahead_selected", ({override}) => {
|
|||
fake_this.query = "/m";
|
||||
fake_this.completing = "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);
|
||||
|
||||
fake_this.query = "/da";
|
||||
|
|
Loading…
Reference in New Issue