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

MM-59761 Add tests for i18n functionality #8510

Merged
merged 2 commits into from
Jan 31, 2025
Merged

Conversation

jwilander
Copy link
Member

Summary

Add tests for i18n files.

Screenshot 2025-01-22 at 07 51 50

Ticket Link

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

Checklist

  • Added or updated unit tests (required for all new features)
  • Has UI changes
  • Includes text changes and localization file updates
  • Have tested against the 5 core themes to ensure consistency between them.
  • Have run E2E tests by adding label E2E iOS tests for PR.

Device Information

This PR was tested on: n/a

Screenshots

n/a

Release Note

NONE

@jwilander jwilander added the 2: Dev Review Requires review by a core commiter label Jan 22, 2025
@Willyfrog
Copy link
Contributor

@jwilander seems test aren't passing. Looks like some sort of conflict with the i18n extract tool (likely looking for the IDs from the tests)

@jwilander
Copy link
Member Author

Ack - I'll see if I can get it to ignore the test file

@Willyfrog
Copy link
Contributor

Ack - I'll see if I can get it to ignore the test file

another possible option would be to use id's already present in the translations

@jwilander jwilander force-pushed the mm-59761_i18n-tests branch from 0953d4c to 995ee2f Compare January 30, 2025 15:11
@jwilander
Copy link
Member Author

@Willyfrog @Rajat-Dabade ready for review

@jwilander jwilander requested review from pvev and removed request for Willyfrog January 30, 2025 19:32
@jwilander
Copy link
Member Author

Re-assigning review to @pvev since Guillermo will be out

Copy link
Contributor

@pvev pvev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@jwilander jwilander added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter labels Jan 31, 2025
@jwilander jwilander merged commit 6f8d663 into main Jan 31, 2025
6 checks passed
@jwilander jwilander deleted the mm-59761_i18n-tests branch January 31, 2025 14:30
larkox pushed a commit that referenced this pull request Feb 4, 2025
* test: Add tests for i18n functionality

* Remove test causing i18n ci check failure
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 release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants