-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove t from post and post textbox components #27056
Conversation
link = ( | ||
<FormattedMessage | ||
id='post_body.check_for_out_of_channel_mentions.link.private' | ||
defaultMessage='add them to this private channel' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of these should be rewritten so that we aren't concatenating strings together because sentence order can be different in other languages, but that's another future task
"app.post.move_thread_command.channel.multiple_messages": "A thread with {numMessages, number} messages has been moved: {link}\n", | ||
"app.post.move_thread_command.channel.one_message": "A message has been moved: {link}\n", | ||
"app.post.move_thread_command.direct_or_group.multiple_messages": "A thread with {numMessages, number} messages has been moved to a Direct/Group Message\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These strings were actually completely invalid because they use the Go style of adding values to the string. I don't think that came up before because this feature is experimental, but FormatJS started complaining about them after I changed these to use defineMessages
Summary
This is part of my mission to eradicate
t
from last week. Most of it is pretty straightforward replacement oft
withdefineMessage
/defineMessages
, and I also occasionally removed some use oflocalizeMessage
as well, but I'll comment on anything noteworthy below.Ticket Link
https://mattermost.atlassian.net/browse/MM-58324
Release Note