Skip to content
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

Merged
merged 7 commits into from
May 24, 2024
Merged

Remove t from post and post textbox components #27056

merged 7 commits into from
May 24, 2024

Conversation

hmhealey
Copy link
Member

Summary

This is part of my mission to eradicate t from last week. Most of it is pretty straightforward replacement of t with defineMessage/defineMessages, and I also occasionally removed some use of localizeMessage as well, but I'll comment on anything noteworthy below.

Ticket Link

https://mattermost.atlassian.net/browse/MM-58324

Release Note

NONE

@hmhealey hmhealey added the 2: Dev Review Requires review by a developer label May 17, 2024
@mm-cloud-bot mm-cloud-bot added the release-note-none Denotes a PR that doesn't merit a release note. label May 17, 2024
link = (
<FormattedMessage
id='post_body.check_for_out_of_channel_mentions.link.private'
defaultMessage='add them to this private channel'
Copy link
Member Author

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

Comment on lines +2826 to +2828
"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",
Copy link
Member Author

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

@devinbinnie devinbinnie added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a developer labels May 22, 2024
@hmhealey hmhealey merged commit 497870a into master May 24, 2024
34 checks passed
@hmhealey hmhealey deleted the hh_may17-t-4 branch May 24, 2024 16:00
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation release-note-none Denotes a PR that doesn't merit a release note.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants